sway: add screenshot keybinds
This commit is contained in:
parent
89eb97ac2a
commit
66b059f689
1 changed files with 10 additions and 1 deletions
11
config
11
config
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue