diff options
author | streetturtle <streetturtle@gmail.com> | 2019-03-23 22:41:06 -0400 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2019-03-23 22:41:06 -0400 |
commit | e14c578c4838d2beee84b3fb2857f715070503b1 (patch) | |
tree | 6432b4c4a6c500f9d7f5cbb26ebce888a828346e /batteryarc-widget | |
parent | 24239f7669d542dcb8f3ced5634f6ac5a7ee3c8f (diff) |
place battery-arc warning icon inside widget folder
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 |