X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/5b09427d4c2fb597f6b54aca5e83f2578e016b96..93f6bf1a710ba5300378b66e68a64e2c467f8c9b:/rc.org?ds=sidebyside 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"