sway: add screenshot keybinds

This commit is contained in:
Konstantin Koslowski 2020-12-18 20:02:50 +01:00
parent 89eb97ac2a
commit 66b059f689

11
config
View file

@ -1,5 +1,5 @@
# Default config for sway
# vim: ft=i3config
# vim: ft=i3
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
@ -146,6 +146,15 @@ bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
## Screenshot
# needs grim, slurp and wl-clipboard packages
#
# copy selection to clipboard
bindsym Print exec grim -g "$(slurp)" - | wl-copy
# save selection
bindsym $mod+Print exec grim -g "$(slurp)" \
$(xdg-user-dir PICTURES)/screenshot_$(date +'%Y%m%d_%H%M%S').png
#
# Gaps