Add and configure flameshot for screenshots

This commit is contained in:
Oliver Davies 2024-01-04 13:00:00 +00:00
parent 79f5c8ac5b
commit e7c9db7711
3 changed files with 18 additions and 2 deletions

View file

@ -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

View file

@ -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;

View file

@ -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";