Add swappy, sway bind for screenshot

This commit is contained in:
Evie Litherland-Smith 2024-09-21 05:46:19 +01:00
parent 24479dcb8e
commit c4cff3085e
2 changed files with 5 additions and 0 deletions

View file

@ -11,6 +11,7 @@
ffmpeg ffmpeg
grim grim
slurp slurp
swappy
wl-clipboard wl-clipboard
swayimg swayimg
swaybg swaybg
@ -211,6 +212,9 @@
"${modifier}+bracketright" = "move workspace to output right"; "${modifier}+bracketright" = "move workspace to output right";
# Function keys # Function keys
## Screenshot
"Print" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.swappy}/bin/swappy -f -";
## Sound ## Sound
"XF86AudioMute" = "exec ${config.services.avizo.package}/bin/volumectl %"; "XF86AudioMute" = "exec ${config.services.avizo.package}/bin/volumectl %";
"XF86AudioMicMute" = "exec ${config.services.avizo.package}/bin/volumectl -m %"; "XF86AudioMicMute" = "exec ${config.services.avizo.package}/bin/volumectl -m %";

View file

@ -61,6 +61,7 @@
"(alacritty.*)" = " $1"; "(alacritty.*)" = " $1";
"(.*) - mpv" = "󰦟 $1"; "(.*) - mpv" = "󰦟 $1";
"swayimg: (.*)" = "󰋩 $1"; "swayimg: (.*)" = "󰋩 $1";
"swappy" = "󰹑 swappy";
"(btm)" = " Resource Usage [$1]"; "(btm)" = " Resource Usage [$1]";
"(cava)" = "󰝚 Music Visualiser [$1]"; "(cava)" = "󰝚 Music Visualiser [$1]";
"(.*) - Thunar" = "󰝰 $1"; "(.*) - Thunar" = "󰝰 $1";