Update swaylock and swayidle settings
parent
69664b471e
commit
12c4382e4b
|
@ -1,11 +1,10 @@
|
|||
# Define locker script
|
||||
set $locker 'swaylock'
|
||||
bindsym $alt+L exec $locker
|
||||
bindsym $alt+L exec 'swaylock'
|
||||
|
||||
# IDLE CONFIG
|
||||
exec swayidle -w \
|
||||
timeout 300 $locker \
|
||||
timeout 330 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
timeout 300 'swaylock' \
|
||||
timeout 330 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
timeout 600 'systemctl suspend' \
|
||||
before-sleep $locker \
|
||||
before-sleep 'playerctl pause'
|
||||
before-sleep 'swaylock; playerctl pause'
|
||||
|
|
|
@ -3,10 +3,10 @@ set $mode_system "System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) r
|
|||
|
||||
# System mode - system menu
|
||||
mode $mode_system {
|
||||
bindsym l exec --no-startup-id $locker, mode "default"
|
||||
bindsym l exec --no-startup-id swaylock, mode "default"
|
||||
bindsym e exec --no-startup-id swaymsg exit, mode "default"
|
||||
bindsym s exec --no-startup-id $locker && systemctl suspend, mode "default"
|
||||
bindsym h exec --no-startup-id $locker && systemctl hibernate, mode "default"
|
||||
bindsym s exec --no-startup-id swaylock && systemctl suspend, mode "default"
|
||||
bindsym h exec --no-startup-id swaylock && systemctl hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
|
||||
|
||||
|
|
Loading…
Reference in New Issue