aboutsummaryrefslogtreecommitdiff
path: root/river
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-22 20:59:50 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-22 20:59:50 -0500
commitc6a72fb6a2958c5128c28a5f01ff885c1808a2b5 (patch)
tree08647379498796debb94c56a90cb8b8f80c1590f /river
parent363c51a386d73b5eda9727e6f8b0f70a78faac37 (diff)
downloadrivercfg-c6a72fb6a2958c5128c28a5f01ff885c1808a2b5.tar.gz
rivercfg-c6a72fb6a2958c5128c28a5f01ff885c1808a2b5.tar.xz
Add screenshot functionality
Diffstat (limited to 'river')
-rwxr-xr-xriver/init3
1 files changed, 3 insertions, 0 deletions
diff --git a/river/init b/river/init
index 618453d..3d6c905 100755
--- a/river/init
+++ b/river/init
@@ -168,6 +168,9 @@ riverctl map normal Super D spawn bemenu-run
riverctl map normal Super B spawn 'pkill -SIGUSR1 waybar'
riverctl focus-follows-cursor normal
+riverctl map normal Super+Shift P spawn 'grim /tmp/screenshot_$(date +S).png'
+riverctl map normal Super+Shift+Control P spawn 'grim -g "$(slurp)" /tmp/screenshot_$(date +%S).png'
+
riverctl map normal Super P spawn dpw-menu
riverctl map normal Super+Control P spawn 'dpw-menu -o'
riverctl map normal Super O spawn 'dpw-menu --type'