Add screenshot commands

This commit is contained in:
Andrew Scott 2023-06-18 00:07:11 -04:00
parent cf1cfc18ac
commit a93c1b6945
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -7,7 +7,19 @@ riverctl map normal Super Return spawn kitty
riverctl map normal Super Space spawn fuzzel riverctl map normal Super Space spawn fuzzel
# Logout # Logout
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
riverctl map normal Super Print spawn 'grim -t png - | wl-copy -t image/png'
# 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'
# Screenshot selection to clipboard
riverctl map normal Alt Print spawn 'grim -t png -g "$(slurp -d)" - | wl-copy -t image/png'
# Screenshot selection and save to file
riverctl map normal Super+Alt Print spawn 'grim -t png ~/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