better screenshotting

This commit is contained in:
Reid 2024-06-08 18:17:48 -07:00
parent e43ac000c8
commit 290b006209
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD

View file

@ -75,9 +75,13 @@ in {
bindr = [ # "bind released" bindr = [ # "bind released"
"SUPER, Super_L, exec, ${lib.getExe pkgs.nwg-drawer}" "SUPER, Super_L, exec, ${lib.getExe pkgs.nwg-drawer}"
]; ];
bind = [ bind = let
screenshotScript = pkgs.writeScript "screenshot" ''
${lib.getExe pkgs.grimblast} --freeze --notify copy area
'';
in [
"$mod, R, exec, ${lib.getExe pkgs.rofi-wayland} -show run" "$mod, R, exec, ${lib.getExe pkgs.rofi-wayland} -show run"
", print, exec, ${lib.getExe pkgs.grimblast} --freeze copy area" ", print, exec, ${screenshotScript}"
"$mod, T, exec, ${lib.getExe pkgs.wezterm}" "$mod, T, exec, ${lib.getExe pkgs.wezterm}"
"$mod, Q, killactive, " "$mod, Q, killactive, "
@ -97,6 +101,8 @@ in {
# alternatively, scroll through workspaces with mod + brackets # alternatively, scroll through workspaces with mod + brackets
"$mod, bracketleft, workspace, e-1" "$mod, bracketleft, workspace, e-1"
"$mod, bracketright, workspace, e+1" "$mod, bracketright, workspace, e+1"
", XF86LaunchA, exec, ${screenshotScript}"
] ++ ( ] ++ (
# workspaces # workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10} # binds $mod + [shift +] {1..10} to [move to] workspace {1..10}