port to newer xidlehook
This commit is contained in:
parent
fdc8c0c634
commit
c70ca085f0
1 changed files with 10 additions and 3 deletions
|
@ -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' \
|
||||||
|
''
|
||||||
|
|
Loading…
Reference in a new issue