diff --git a/config/i3/backlight.fish b/config/i3/backlight.fish index da04f63..d0f29c5 100755 --- a/config/i3/backlight.fish +++ b/config/i3/backlight.fish @@ -1,10 +1,10 @@ #!/usr/bin/fish xbacklight $argv[1..-1] -set brightness (xbacklight -get) -set bar (seq -s "─" 0 (math $brightness / 3) | tr -d '[:digit:]') +set brightness (cat /sys/class/backlight/intel_backlight/brightness) +set bar (seq -s "─" 0 (math $brightness / 36) | tr -d '[:digit:]') -set percentage (printf '%44s%d%%' '' "$brightness") +set percentage (printf '%44s%d%%' '' (math $brightness / 12)) set body "$percentage\n $bar" set title ' Brightness'