summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rc.org18
1 files changed, 8 insertions, 10 deletions
diff --git a/rc.org b/rc.org
index 7e5b2a1..943103e 100644
--- a/rc.org
+++ b/rc.org
@@ -3800,9 +3800,8 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
### Idle configuration
exec swayidle \
- timeout 120 swaylock \
- timeout 180 'swaymsg "output * dpms off"' \
- resume 'swaymsg "output * dpms on"' \
+ timeout 120 'swaymsg "output * dpms off"' \
+ resume 'swaymsg "output * dpms on"' \
before-sleep swaylock
@@ -3971,16 +3970,15 @@ bindsym $mod+Shift+r mode "resize"
#
# Power button
#
-set $locker swaylock && sleep 1
set $mode_system System (l)ock, (e)xit sway, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown
mode "$mode_system" {
- bindsym l exec $locker, mode "default"
- bindsym e exec swaymsg exit, mode "default"
- bindsym s exec $locker && systemctl suspend, mode "default"
- bindsym h exec $locker && systemctl hibernate, mode "default"
- bindsym r exec systemctl reboot, mode "default"
- bindsym Shift+s exec systemctl poweroff -i, mode "default"
+ bindsym l exec swaylock, mode "default"
+ bindsym e exec swaymsg exit, mode "default"
+ bindsym s exec systemctl suspend, mode "default"
+ bindsym h exec systemctl hibernate, mode "default"
+ bindsym r exec systemctl reboot, mode "default"
+ bindsym Shift+s exec systemctl poweroff -i, mode "default"
# back to normal: Enter, Escape, or q
bindsym Return mode "default"