vanadium/autorandr: delay software brightness setting

This commit is contained in:
Primrose 2025-10-21 21:44:34 +08:00
parent eb41cbc94a
commit 1635fdc3a3
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -61,7 +61,11 @@
device, # obtain with `xrandr`
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" ''
sleep 10
xrandr --output ${device} --brightness ${toString brightness}
'';