mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-03 06:44:21 +02:00
lock: ensure that dim stops before end of period
Otherwise, we have concurrent xbacklight processes
This commit is contained in:
parent
e0b246bee9
commit
8dc196e60d
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ case "$1" in
|
|||
trap 'exit 0' TERM INT
|
||||
trap "xbacklight -steps 1 -set $(xbacklight -get); kill %%" EXIT
|
||||
min_brightness=0
|
||||
fade_time=$(($notify * 1000))
|
||||
fade_time=$(($notify * 800))
|
||||
fade_steps=100
|
||||
xbacklight -time $fade_time -steps $fade_steps -set $min_brightness
|
||||
echo "$me: dim: end"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue