add print screen

This commit is contained in:
kp2pml30 2025-03-18 19:17:00 +04:00
parent 778ad87a8a
commit 6f3eb7dbe2
2 changed files with 5 additions and 1 deletions

View file

@ -346,7 +346,10 @@ globalkeys = gears.table.join(
awful.key({}, "XF86AudioMute", function() my_volume:toggle() end),
awful.key({}, "XF86MonBrightnessDown", function() my_brightness:down() end),
awful.key({}, "XF86MonBrightnessUp", function() my_brightness:up() end)
awful.key({}, "XF86MonBrightnessUp", function() my_brightness:up() end),
-- screenshot
awful.key({}, "Print", function () awful.spawn.with_shell("xfce4-screenshooter -r --save /dev/stdout | xclip -i -selection clipboard -t image/png") end)
)
clientkeys = gears.table.join(

View file

@ -32,6 +32,7 @@ in lib.mkIf cfg.xserver {
environment.systemPackages = with pkgs; [
xclip
brightnessctl
xfce.xfce4-screenshooter
];
home-manager.users.${cfg.username} = {