diff --git a/de/home/.config/swayidle/config b/de/home/.config/swayidle/config index 77ecde7..f9d6edc 100644 --- a/de/home/.config/swayidle/config +++ b/de/home/.config/swayidle/config @@ -1,7 +1,5 @@ -lock 'sp-lock' -timeout 150 'brightnessctl g | tee $HOME/.config/swayidle/brightness; brightnessctl s 0' resume 'brightnessctl s $(cat $HOME/.config/swayidle/brightness); rm $HOME/.config/swayidle/brightness' -timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' -timeout 600 'swaymsg "output * power on";sleep 3;/usr/bin/sp-lock' -timeout 1800 'swaymsg "output * power on";sleep 3;systemctl suspend' -#before-sleep '/usr/bin/sp-lock' -before-sleep 'loginctl lock-session' +lock 'loginctl lock-session;sp-lock' +#timeout 150 'brightnessctl g | tee $HOME/.config/swayidle/brightness; brightnessctl s 0' resume 'brightnessctl s $(cat $HOME/.config/swayidle/brightness); rm $HOME/.config/swayidle/brightness' +timeout 300 'chayang -d 120 && /usr/bin/sp-lock' +timeout 1800 'systemctl suspend' +before-sleep 'loginctl lock-session;sp-lock'