From 608113950606c9c0b8734d279e515199e0749ed3 Mon Sep 17 00:00:00 2001 From: GrayJack Date: Wed, 13 Feb 2019 01:22:00 -0200 Subject: [PATCH] Powerarrow: fix a problem in the brightness widget that made awesome use too much CPU load --- themes/powerarrow/theme.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/powerarrow/theme.lua b/themes/powerarrow/theme.lua index d93b4c5..3dac926 100644 --- a/themes/powerarrow/theme.lua +++ b/themes/powerarrow/theme.lua @@ -274,8 +274,8 @@ local net = lain.widget.net({ -- Brigtness local brighticon = wibox.widget.imagebox(theme.widget_brightness) -- If you use xbacklight, comment the line with "light -G" and uncomment the line bellow --- local brightwidget = awful.widget.watch('xbacklight -get', 0, -local brightwidget = awful.widget.watch('light -G', 0, +-- local brightwidget = awful.widget.watch('xbacklight -get', 0.1, +local brightwidget = awful.widget.watch('light -G', 0.1, function(widget, stdout, stderr, exitreason, exitcode) local brightness_level = tonumber(string.format("%.0f", stdout)) widget:set_markup(markup.font(theme.font, " " .. brightness_level .. "%"))