sway screenshots

This commit is contained in:
Jonas H
2026-03-29 10:01:35 +02:00
parent f66efc67bb
commit e89e5f60e1

View File

@@ -41,6 +41,10 @@ bindsym $mod+space exec "pkill fuzzel || fuzzel"
bindsym $mod+b exec $browser bindsym $mod+b exec $browser
bindsym $mod+Shift+g exec ~/.config/sway/scripts/gif-record.sh bindsym $mod+Shift+g exec ~/.config/sway/scripts/gif-record.sh
# Screenshots
bindsym $mod+p exec grim /tmp/screenshot-$(date +%Y%m%d-%H%M%S).png && wl-copy < $(ls -t /tmp/screenshot-*.png | head -1)
bindsym $mod+Shift+p exec grim -g "$(slurp)" /tmp/screenshot-$(date +%Y%m%d-%H%M%S).png && wl-copy < $(ls -t /tmp/screenshot-*.png | head -1)
# mouse button for dragging. # mouse button for dragging.
floating_modifier $mod normal floating_modifier $mod normal