From 1b487b649f919527af5161a0a9caf36db4b49ae6 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Mon, 18 Feb 2019 17:38:21 +0100 Subject: [PATCH] i3: Improve backlight performance --- config/i3/backlight.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'