diff --git a/backlight/backlight.lua b/backlight/backlight.lua index b9b1c4b..f95702d 100644 --- a/backlight/backlight.lua +++ b/backlight/backlight.lua @@ -31,7 +31,7 @@ function P:_update_widget() end self.widget:set_value(self.brightness); - self.widget:set_tooltip("Backlight " .. self.brightness .. "u"); + self.widget:set_tooltip("Backlight " .. math.floor(self.brightness) .. "%"); self.widget:set_state("ready") end @@ -90,7 +90,7 @@ function P:new(args) -- Arguments b = { update_interval = args.update_interal or 5, - min_value = args.min_value or 0, + min_value = args.min_value or 1, max_value = args.max_value or 100, widget_type = args.widget_type or "arc",