mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-16 13:14:20 +02:00
lock: workaround race condition with dimming
For some reason, the race condition is here. Dunno how to fix it. Just workaround it with another race condition... :(
This commit is contained in:
parent
e251895730
commit
9d9234e4dd
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ case "$1" in
|
|||
trap 'exit 0' TERM INT
|
||||
trap "kill %% ; wait ; xbacklight -steps 1 -set $(xbacklight -get)" EXIT
|
||||
min_brightness=1
|
||||
fade_time=$(($notify * 1000))
|
||||
fade_time=$(($notify * 1000 - 1000))
|
||||
fade_steps=100
|
||||
xbacklight -time $fade_time -steps $fade_steps -set $min_brightness &
|
||||
wait
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue