diff --git a/classes/backlight/backlight.lua b/classes/backlight/backlight.lua index 500626f..f9f2b26 100644 --- a/classes/backlight/backlight.lua +++ b/classes/backlight/backlight.lua @@ -45,11 +45,11 @@ function P:backlight_up() return end - awful.spawn("xbacklight -inc 5", false) self.brightness = self.brightness + 5 if self.brightness > self.max_value then self.brightness = self.max_value end + self:backlight_set(self.brightness) self:_update_widget() end @@ -58,11 +58,11 @@ function P:backlight_down() return end - awful.spawn("xbacklight -dec 5", false) self.brightness = self.brightness - 5 if self.brightness < self.min_value then self.brightness = self.min_value end + self:backlight_set(self.brightness) self:_update_widget() end