Add and configure flameshot for screenshots
This commit is contained in:
parent
79f5c8ac5b
commit
e7c9db7711
3 changed files with 18 additions and 2 deletions
system/nixos/home-manager
|
@ -1,7 +1,7 @@
|
||||||
{ config, desktop, inputs, pkgs, self, username, ... }:
|
{ config, desktop, inputs, pkgs, self, username, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
desktop-config = import ./desktop.nix { inherit config inputs pkgs; };
|
desktop-config = import ./desktop.nix { inherit config inputs pkgs username; };
|
||||||
shared-config = import ../../shared/home-manager.nix { inherit inputs pkgs self username; };
|
shared-config = import ../../shared/home-manager.nix { inherit inputs pkgs self username; };
|
||||||
shared-packages = import ../../shared/home-manager-packages.nix { inherit inputs pkgs; };
|
shared-packages = import ../../shared/home-manager-packages.nix { inherit inputs pkgs; };
|
||||||
in
|
in
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, inputs, pkgs }:
|
{ config, inputs, pkgs, username }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -18,6 +18,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.flameshot = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
disabledTrayIcon = false;
|
||||||
|
saveAfterCopy = true;
|
||||||
|
savePath = "/home/${username}/Pictures/Screenshots";
|
||||||
|
showHelp = false;
|
||||||
|
uiColor = "#60a5fa";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
xdg.configFile.wallpaper = {
|
xdg.configFile.wallpaper = {
|
||||||
source = ../../../config/wallpaper;
|
source = ../../../config/wallpaper;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
|
@ -37,6 +37,8 @@ in
|
||||||
"${modifier}+Shift+k" = "move up";
|
"${modifier}+Shift+k" = "move up";
|
||||||
"${modifier}+Shift+l" = "move right";
|
"${modifier}+Shift+l" = "move right";
|
||||||
|
|
||||||
|
"${modifier}+Shift+p" = "exec flameshot gui";
|
||||||
|
|
||||||
"XF86AudioRaiseVolume" = "exec pamixer -ui 2 && pamixer --get-volume";
|
"XF86AudioRaiseVolume" = "exec pamixer -ui 2 && pamixer --get-volume";
|
||||||
"XF86AudioLowerVolume" = "exec pamixer -ud 2 && pamixer --get-volume";
|
"XF86AudioLowerVolume" = "exec pamixer -ud 2 && pamixer --get-volume";
|
||||||
"XF86AudioMute" = "exec pamixer --toggle-mute && ( [ \"$(pamixer --get-mute)\" = \"true\" ] && echo 0";
|
"XF86AudioMute" = "exec pamixer --toggle-mute && ( [ \"$(pamixer --get-mute)\" = \"true\" ] && echo 0";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue