Added improved logic for sleep.
- adds a notification before sleep - fixes storing and reverting the brightness changing - sets brightness half of current rather than a discrete number.
This commit is contained in:
parent
d2b60a2fd2
commit
c1c6311c10
|
@ -14,8 +14,9 @@ exec --no-startup-id autotiling
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 285 'light -I && light -S 5' \
|
timeout 280 notify-send "鈴 sleeping in 20 seconds" -t 5000 -c 'sleep' \
|
||||||
resume 'light -O' \
|
timeout 285 'light -O && let "a = $(light -G) / 2" && light -S $a '\
|
||||||
|
resume 'light -I' \
|
||||||
timeout 300 'swaylock-fancy' \
|
timeout 300 'swaylock-fancy' \
|
||||||
timeout 600 'swaymsg "output * dpms off"' \
|
timeout 600 'swaymsg "output * dpms off"' \
|
||||||
resume 'swaymsg "output * dpms on"' \
|
resume 'swaymsg "output * dpms on"' \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user