sway: date formatted screenshots in home

This commit is contained in:
Vladan Popovic 2024-10-14 09:59:52 +02:00
parent a3b0b8754b
commit db4a1cf198

View file

@ -122,9 +122,9 @@
bindsym $mod+z exec swaylock -c 000000
# Take full screen screenshot with PrtScr
bindsym Print exec grim -t png /tmp/screen.png
bindsym Print exec grim -t png "~/screenshot-$(date +%Y-%m-%d-%H%M%S).png"
# Take area screenshot with Shift+PrtScr
bindsym Shift+Print exec grim -g "$(slurp)" /tmp/screen.png
bindsym Shift+Print exec grim -g "$(slurp)" "~/screenshot-$(date +%Y-%m-%d-%H%M%S).png"
#
# Resizing containers: