fix screenshot commands

This commit is contained in:
Andrew Scott 2023-06-18 01:08:19 -04:00
parent a93c1b6945
commit 813e050632
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -10,7 +10,7 @@ riverctl map normal Super Space spawn fuzzel
riverctl map normal Super End spawn 'wleave -p layer-shell' riverctl map normal Super End spawn 'wleave -p layer-shell'
# Screenshot entire display to clipboard # Screenshot entire display to clipboard
riverctl map normal Super Print spawn 'grim -t png - | wl-copy -t image/png' riverctl map normal Control Print spawn 'grim -t png - | wl-copy -t image/png'
# Screenshot entire display and save to file # Screenshot entire display and save to file
riverctl map normal Super+Control Print spawn 'grim -t png ~/Pictures/screenshot-$(date +%Y-%m-%d_%T).png' riverctl map normal Super+Control Print spawn 'grim -t png ~/Pictures/screenshot-$(date +%Y-%m-%d_%T).png'
@ -19,7 +19,7 @@ riverctl map normal Super+Control Print spawn 'grim -t png ~/Pictures/screenshot
riverctl map normal Alt Print spawn 'grim -t png -g "$(slurp -d)" - | wl-copy -t image/png' riverctl map normal Alt Print spawn 'grim -t png -g "$(slurp -d)" - | wl-copy -t image/png'
# Screenshot selection and save to file # Screenshot selection and save to file
riverctl map normal Super+Alt Print spawn 'grim -t png ~/Pictures/screenshot-$(date +%Y-%m-%d_%T).png' riverctl map normal Super+Alt Print spawn 'grim -t png -g "$(slurp -d)" ~/Pictures/screenshot-$(date +%Y-%m-%d_%T).png'
# Close the focused view # Close the focused view
riverctl map normal Super Q close riverctl map normal Super Q close