mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium/autorandr: delay software brightness setting
This commit is contained in:
parent
eb41cbc94a
commit
1635fdc3a3
1 changed files with 4 additions and 0 deletions
|
|
@ -61,7 +61,11 @@
|
||||||
device, # obtain with `xrandr`
|
device, # obtain with `xrandr`
|
||||||
brightness, # [0..1]
|
brightness, # [0..1]
|
||||||
}:
|
}:
|
||||||
|
# Hack:
|
||||||
|
# xrandr would consider the display being connected before we can change its brightness
|
||||||
|
# For that reason, we can't base our delay on its output, sadly.
|
||||||
singleton "10_xrandr_brightness" ''
|
singleton "10_xrandr_brightness" ''
|
||||||
|
sleep 10
|
||||||
xrandr --output ${device} --brightness ${toString brightness}
|
xrandr --output ${device} --brightness ${toString brightness}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue