fix: merged xidlehook rules

This commit is contained in:
2025-01-11 12:25:35 +01:00
parent 38c84946c5
commit edc6aecb09

View File

@@ -79,27 +79,12 @@ if [ "$(hostname)" = "zion" ]; then
# xset s on # xset s on
# xset s 1200 # xset s 1200
# Desktop-specific xidlehook rules
xidlehook \ xidlehook \
--not-when-fullscreen \ --not-when-fullscreen \
--not-when-audio \ --not-when-audio \
--timer 600 \ --timer 600 "xset dpms force standby" "" \
"xset dpms force standby" \ --timer 1800 "xset dpms force suspend" "" \
"" & # Enter standby after 10 minutes --timer 3600 "xset dpms force off" "" &
xidlehook \
--not-when-fullscreen \
--not-when-audio \
--timer 1800 \
"xset dpms force suspend" \
"" & # Enter suspend after 30 minutes
xidlehook \
--not-when-fullscreen \
--not-when-audio \
--timer 3600 \
"xset dpms force off" \
"" & # Turn off display after 60 minutes
elif [ "$(hostname)" = "thor" ]; then elif [ "$(hostname)" = "thor" ]; then
# Thor rules (Laptop) # Thor rules (Laptop)
@@ -115,30 +100,10 @@ elif [ "$(hostname)" = "thor" ]; then
xidlehook \ xidlehook \
--not-when-fullscreen \ --not-when-fullscreen \
--not-when-audio \ --not-when-audio \
--timer 450 \ --timer 450 "brightnessctl -s set 5%" "brightnessctl -s set 100%" \
"brightnessctl -s set 5%" \ --timer 600 "loginctl lock-session" "" \
"brightnessctl -s set 100%" & # Dim screen after 7.5 minutes --timer 750 "xset dpms force standby" "" \
--timer 900 "systemctl suspend" "" &
xidlehook \
--not-when-fullscreen \
--not-when-audio \
--timer 600 \
"loginctl lock-session" \
"" & # Lock screen after 10 minutes
xidlehook \
--not-when-fullscreen \
--not-when-audio \
--timer 750 \
"xset dpms force standby" \
"" & # Turn off display after 12.5 minutes
xidlehook \
--not-when-fullscreen \
--not-when-audio \
--timer 900 \
"systemctl suspend" \
"" & # Suspend after 15 minutes
fi fi
# auths # auths