[river] Add screenshot keybind

This commit is contained in:
Midgard 2024-07-10 06:46:35 +02:00
parent 6f3ef436be
commit cf073c7e92
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -47,6 +47,11 @@ riverctl map normal $mod O spawn "swaylock -c 000000 -l -f -i ~/img/bg/amy_sunfl
riverctl map normal $mod D spawn "killall rofi || rofi -show combi"
riverctl map normal None Print spawn 'grim -g "$(slurp)" "/tmp/screenshot-$(date +%Y-%m-%d_%H-%M-%S).png"'
riverctl map normal None XF86Eject spawn 'grim -g "$(slurp)" "/tmp/screenshot-$(date +%Y-%m-%d_%H-%M-%S).png"'
riverctl map normal Shift Print spawn "$HOME/.local/bin/screenshot-and-files"
riverctl map normal Shift XF86Eject spawn "$HOME/.local/bin/screenshot-and-files"
riverctl map normal $mod K focus-view up
riverctl map normal $mod J focus-view down