Small changes to backlight

master
Mark 2022-04-24 09:12:18 -07:00
parent 7ce340c4bb
commit 71e36b3f1b
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 2 additions and 2 deletions

View File

@ -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",