[sway] add screen capture

This commit is contained in:
Gregory Trolliet 2024-11-09 17:52:14 +01:00
parent 419454433b
commit dcfc30a561

View file

@ -160,6 +160,19 @@ mode "present" {
}
bindsym $mod+p mode "present"
#========================#
# Screen capture #
#========================#
# save screen to ~/Pictures
bindsym Print exec grim
# save a region to ~/Pictures
bindsym Shift+Print exec grim -g "$(slurp)"
# send screen to clipboard
bindsym Ctrl+Print exec grim - | wl-copy
# send a region to clipboard
bindsym Ctrl+Shift+Print exec grim -g "$(slurp)" - | wl-copy
#=================================#
# Keyboard Shortcuts (Workspaces) #
#=================================#