diff options
-rw-r--r-- | battery-widget/battery.lua | 5 | ||||
-rw-r--r-- | brightness-widget/brightness.lua | 5 | ||||
-rw-r--r-- | volume-widget/volume.lua | 5 |
3 files changed, 9 insertions, 6 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index a0116eb..3823fba 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -49,12 +49,13 @@ watch( else batteryType = string.format(batteryType,'') end - battery_widget.image = path_to_icons .. batteryType .. ".svg" + widget.image = path_to_icons .. batteryType .. ".svg" -- Update popup text -- TODO: Filter long lines battery_popup.text = string.gsub(stdout, "\n$", "") - end + end, + battery_widget ) -- Alternative to tooltip - popup message shown by naughty library. You can compare both and choose the preferred one diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua index f003eca..af6449a 100644 --- a/brightness-widget/brightness.lua +++ b/brightness-widget/brightness.lua @@ -19,6 +19,7 @@ watch( "xbacklight -get", 1, function(widget, stdout, stderr, exitreason, exitcode) local brightness_level = tonumber(string.format("%.0f", stdout)) - brightness_widget:set_text(brightness_level) - end + widget:set_text(brightness_level) + end, + brightness_widget )
\ No newline at end of file diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua index dfcd80d..efb9d20 100644 --- a/volume-widget/volume.lua +++ b/volume-widget/volume.lua @@ -44,6 +44,7 @@ watch( elseif (volume >= 50 and volume < 75) then volume_icon_name="audio-volume-medium-symbolic" elseif (volume >= 75 and volume <= 100) then volume_icon_name="audio-volume-high-symbolic" end - volume_widget.image = path_to_icons .. volume_icon_name .. ".svg" - end + widget.image = path_to_icons .. volume_icon_name .. ".svg" + end, + volume_widget ) |