mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 19:14:39 +02:00
[sway] add screenshot-shortcut for single window
This commit is contained in:
parent
40042ff35e
commit
1502e9cef5
1 changed files with 3 additions and 2 deletions
|
@ -101,8 +101,9 @@ bindsym $mod+F4 exec $keyboard-f4
|
|||
bindsym $mod+Shift+F4 exec $keyboard-shift-f4
|
||||
|
||||
# Screenshot
|
||||
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 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+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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue