Skip to content

Instantly share code, notes, and snippets.

@maty974
Forked from furui/backlight-daemon.sh
Created March 11, 2018 12:50
Show Gist options
  • Save maty974/2b1c91be78d77981e44ec34375658894 to your computer and use it in GitHub Desktop.
Save maty974/2b1c91be78d77981e44ec34375658894 to your computer and use it in GitHub Desktop.
Set xbacklight to ACPI brightness (ROG GL702VM but probably GL502VM as well)
#!/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