-
-
Save maty974/2b1c91be78d77981e44ec34375658894 to your computer and use it in GitHub Desktop.
Set xbacklight to ACPI brightness (ROG GL702VM but probably GL502VM as well)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
inotifywait -e modify /sys/class/backlight/acpi_video0/brightness | |
echo brightness set to: $(cat /sys/class/backlight/acpi_video0/brightness) | |
xbacklight -set $(cat /sys/class/backlight/acpi_video0/brightness) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment