mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 08:36:11 +01:00
fix: merged xidlehook rules
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user