diff --git a/scripts/lockscreentime.sh b/scripts/lockscreentime.sh index 9ef3445..06e7dbc 100755 --- a/scripts/lockscreentime.sh +++ b/scripts/lockscreentime.sh @@ -1,8 +1,20 @@ #/bin/sh +# ___ _ _ _ _ +# |_ _|__| | | ___| |_(_)_ __ ___ ___ +# | |/ _` | |/ _ \ __| | '_ ` _ \ / _ \ +# | | (_| | | __/ |_| | | | | | | __/ +# |___\__,_|_|\___|\__|_|_| |_| |_|\___| +# +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- + +timeswaylock=600 +timeoff=660 if [ -f "/usr/bin/swayidle" ]; then echo "swayidle is installed." - swayidle -w timeout 300 'swaylock -f' timeout 360 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' + swayidle -w timeout $timeswaylock 'swaylock -f' timeout $timeoff 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' else echo "swayidle not installed." fi; diff --git a/wlogout/layout b/wlogout/layout index 568bc3d..50891a8 100644 --- a/wlogout/layout +++ b/wlogout/layout @@ -12,7 +12,7 @@ } { "label" : "logout", - "action" : "sleep 1; hyprctl dispatch exit", + "action" : "sleep 1; loginctl terminate-user $USER", "text" : "Logout", "keybind" : "e" }