feat: river: implemented suspending.

This commit is contained in:
Andrey Parhomenko 2024-07-14 18:59:29 +05:00
parent bff5302cc8
commit 59e32b7e44
2 changed files with 2 additions and 0 deletions

View file

@ -90,6 +90,7 @@ export-loop \
XPUSH_NOTIFICATION_DAEMON 'dunst' \
XNOTIFY 'dunstify' \
XLOCKER 'swaylock' \
XSUSPEND 'systemctl suspend' \
SSH_ASKPASS ''\
source-if-exist "$ETC/script/lf.sh"

View file

@ -49,6 +49,7 @@ riverctl map normal Super R zoom
# Lock the screen.
riverctl map normal Super E spawn "riverctl keyboard-layout us && $XLOCKER"
riverctl map normal Super+Alt E spawn "riverctl keyboard-layout us && $XLOCKER & $XSUSPEND"
# Super+H and Super+L to decrease/increase the main ratio of rivertile(1)
riverctl map -repeat normal Super H send-layout-cmd rivertile "main-ratio -0.05"