From 71e36b3f1b8fba74f7a3386c99a9c053e5723cde Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 24 Apr 2022 09:12:18 -0700 Subject: [PATCH] Small changes to backlight --- backlight/backlight.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",