add sway screenshot shortcuts (with grim and swappy)

This commit is contained in:
2024-12-17 13:42:41 +01:00
parent 54afbe1472
commit c0c91062e3

View File

@@ -85,6 +85,12 @@ bindsym $mod+d exec $menu
# Lock the screen
bindsym $mod+Shift+s exec $lock
# Screenshot (whole screen)
bindsym $mod+p exec grim - | swappy -f -
# Screenshot (screen region)
bindsym $mod+Shift+p exec grim -g "$(slurp)" - | swappy -f -
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.