From a93c1b694515301df027fb80733bf4cb5bcdab2e Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sun, 18 Jun 2023 00:07:11 -0400 Subject: [PATCH] Add screenshot commands --- dot_config/river/executable_init.tmpl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dot_config/river/executable_init.tmpl b/dot_config/river/executable_init.tmpl index 5eade43..52f69e3 100644 --- a/dot_config/river/executable_init.tmpl +++ b/dot_config/river/executable_init.tmpl @@ -7,7 +7,19 @@ riverctl map normal Super Return spawn kitty riverctl map normal Super Space spawn fuzzel # 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 riverctl map normal Super Q close