port to newer xidlehook

This commit is contained in:
Cyryl Płotnicki 2020-10-03 20:13:27 +01:00
parent fdc8c0c634
commit c70ca085f0

View file

@ -7,9 +7,16 @@ export PRIMARY_DISPLAY="$(xrandr | awk '/ primary/{print $1}')"
xset s off xset s off
xset -dpms xset -dpms
xidlehook \ xidlehook \
--not-when-fullscreen \ --not-when-fullscreen \
--not-when-audio \ --not-when-audio \
--timer normal 120 'xrandr --output "$PRIMARY_DISPLAY" --brightness .1' 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1' \ --timer 60 \
--timer normal 300 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1; systemctl suspend' 'xrandr --output "$PRIMARY_DISPLAY" --brightness 1' 'xrandr --output "$PRIMARY_DISPLAY" --brightness .1' \
'xrandr --output "$PRIMARY_DISPLAY" --brightness 1' \
--timer 10 \
'xrandr --output "$PRIMARY_DISPLAY" --brightness 1; physlock -d' \
'' \
--timer 600 \
'xrandr --output "$PRIMARY_DISPLAY" --brightness 1; systemctl suspend' \
''