Add and configure flameshot for screenshots
This commit is contained in:
parent
79f5c8ac5b
commit
e7c9db7711
|
@ -1,7 +1,7 @@
|
|||
{ config, desktop, inputs, pkgs, self, username, ... }:
|
||||
|
||||
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-packages = import ../../shared/home-manager-packages.nix { inherit inputs pkgs; };
|
||||
in
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, inputs, pkgs }:
|
||||
{ config, inputs, pkgs, username }:
|
||||
|
||||
{
|
||||
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 = {
|
||||
source = ../../../config/wallpaper;
|
||||
recursive = true;
|
||||
|
|
|
@ -37,6 +37,8 @@ in
|
|||
"${modifier}+Shift+k" = "move up";
|
||||
"${modifier}+Shift+l" = "move right";
|
||||
|
||||
"${modifier}+Shift+p" = "exec flameshot gui";
|
||||
|
||||
"XF86AudioRaiseVolume" = "exec pamixer -ui 2 && pamixer --get-volume";
|
||||
"XF86AudioLowerVolume" = "exec pamixer -ud 2 && pamixer --get-volume";
|
||||
"XF86AudioMute" = "exec pamixer --toggle-mute && ( [ \"$(pamixer --get-mute)\" = \"true\" ] && echo 0";
|
||||
|
|
Loading…
Reference in a new issue