diff options
Diffstat (limited to 'batteryarc-widget')
-rw-r--r-- | batteryarc-widget/batteryarc.lua | 3 | ||||
-rw-r--r-- | batteryarc-widget/spaceman.jpg | bin | 0 -> 16738 bytes |
2 files changed, 2 insertions, 1 deletions
diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua index 103245a..cef1904 100644 --- a/batteryarc-widget/batteryarc.lua +++ b/batteryarc-widget/batteryarc.lua @@ -125,6 +125,7 @@ watch("acpi -i", 10, local bat_high = 75 local bat_low = 30 +-- if charge_perc <= bat_low then if charge_perc <= bat_low then batteryarc.colors = { beautiful.widget_red } if status ~= 'Charging' and os.difftime(os.time(), last_battery_check) > 300 then @@ -172,7 +173,7 @@ batteryarc:connect_signal("mouse::leave", function() naughty.destroy(notificatio --[[ Show warning notification ]] function show_battery_warning() naughty.notify { - icon = HOME .. "/.config/awesome/awesome-wm-widgets/fig/spaceman.jpg", -- new fig + icon = HOME .. "/.config/awesome/awesome-wm-widgets/batteryarc-widget/spaceman.jpg", icon_size = 100, text = "Battery is dying", -- switch text and title title = "Huston, we have a problem", diff --git a/batteryarc-widget/spaceman.jpg b/batteryarc-widget/spaceman.jpg Binary files differnew file mode 100644 index 0000000..73ddaf3 --- /dev/null +++ b/batteryarc-widget/spaceman.jpg |