feat: river: added locking hotkey.

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

View file

@ -89,6 +89,7 @@ export-loop \
XCALENDAR '$XTERMINAL -e calcurse' \
XPUSH_NOTIFICATION_DAEMON 'dunst' \
XNOTIFY 'dunstify' \
XLOCKER 'swaylock' \
SSH_ASKPASS ''\
source-if-exist "$ETC/script/lf.sh"

View file

@ -47,6 +47,9 @@ riverctl map normal Super+Shift Comma send-to-output -current-tags previous
# bump the focused view to the top of the layout stack
riverctl map normal Super R zoom
# Lock the screen.
riverctl map normal Super E spawn "riverctl keyboard-layout us && $XLOCKER"
# 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"
riverctl map -repeat normal Super L send-layout-cmd rivertile "main-ratio +0.05"