From bff5302cc890241521e83ec34fb49518b4ffc446 Mon Sep 17 00:00:00 2001 From: surdeus Date: Sun, 14 Jul 2024 18:12:29 +0500 Subject: [PATCH] feat: river: added locking hotkey. --- dot/file/profile | 1 + river/init | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dot/file/profile b/dot/file/profile index 5101653..ea0e66b 100755 --- a/dot/file/profile +++ b/dot/file/profile @@ -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" diff --git a/river/init b/river/init index 6c0c5c0..3214af1 100755 --- a/river/init +++ b/river/init @@ -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"