add sway screenshot shortcuts (with grim and swappy)

This commit is contained in:
Václav Uruba 2024-12-17 13:42:41 +01:00
parent 54afbe1472
commit c0c91062e3
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

View File

@ -85,6 +85,12 @@ bindsym $mod+d exec $menu
# Lock the screen # Lock the screen
bindsym $mod+Shift+s exec $lock 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. # Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod. # Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows. # Despite the name, also works for non-floating windows.