From 59e32b7e4426ac76c0d6d3211681b4ae06d10f27 Mon Sep 17 00:00:00 2001 From: surdeus Date: Sun, 14 Jul 2024 18:59:29 +0500 Subject: [PATCH] feat: river: implemented suspending. --- dot/file/profile | 1 + river/init | 1 + 2 files changed, 2 insertions(+) diff --git a/dot/file/profile b/dot/file/profile index ea0e66b..62e713e 100755 --- a/dot/file/profile +++ b/dot/file/profile @@ -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" diff --git a/river/init b/river/init index 3214af1..ebc31a0 100755 --- a/river/init +++ b/river/init @@ -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"