From e14c578c4838d2beee84b3fb2857f715070503b1 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sat, 23 Mar 2019 22:41:06 -0400 Subject: place battery-arc warning icon inside widget folder --- batteryarc-widget/batteryarc.lua | 3 ++- batteryarc-widget/spaceman.jpg | Bin 0 -> 16738 bytes fig/spaceman.jpg | Bin 16738 -> 0 bytes 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 batteryarc-widget/spaceman.jpg delete mode 100644 fig/spaceman.jpg 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 new file mode 100644 index 0000000..73ddaf3 Binary files /dev/null and b/batteryarc-widget/spaceman.jpg differ diff --git a/fig/spaceman.jpg b/fig/spaceman.jpg deleted file mode 100644 index 73ddaf3..0000000 Binary files a/fig/spaceman.jpg and /dev/null differ -- cgit v1.2.3