[sway] add screenshot-shortcut for single window

This commit is contained in:
Felix Buehler 2019-11-16 14:39:46 +01:00
parent 40042ff35e
commit 1502e9cef5

View file

@ -101,8 +101,9 @@ bindsym $mod+F4 exec $keyboard-f4
bindsym $mod+Shift+F4 exec $keyboard-shift-f4 bindsym $mod+Shift+F4 exec $keyboard-shift-f4
# Screenshot # Screenshot
bindsym Print exec "grim ~/Downloads/Screenshot-$(date +'%Y-%m-%d_%H%M%S.png')" bindsym Print exec grim ~/Downloads/Screenshot-$(date +'%Y-%m-%d_%H%M%S.png')
bindsym $mod+Print exec "slurp | grim -g - ~/Downloads/Screenshot-$(date +'%Y-%m-%d_%H%M%S.png')" bindsym $mod+Print exec slurp | grim -g - ~/Downloads/Screenshot-$(date +'%Y-%m-%d_%H%M%S.png')
bindsym $mod+Shift+Print exec swaymsg -t get_tree | jq -r '.. | (.nodes? // empty , .floating_nodes? // empty)[] | select(.focused) | "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"' | grim -g - ~/Downloads/Screenshot-$(date +'%Y-%m-%d_%H%M%S.png')
# forward an backward at arrow-keys # forward an backward at arrow-keys