summaryrefslogtreecommitdiff
path: root/battery-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2017-02-08 20:38:13 -0500
committerstreetturtle <streetturtle@gmail.com>2017-02-08 20:38:13 -0500
commitc57a059f55d1202c609b71717877fdcca521d611 (patch)
tree5b5055cc2e6d50fa332b2c57a82c5f68cee51749 /battery-widget
parenta793ef58e71e91d06011e726d9212b3f64fe7f14 (diff)
Add naughty.notify alternative
Diffstat (limited to 'battery-widget')
-rw-r--r--battery-widget/battery.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua
index 446bafa..a0116eb 100644
--- a/battery-widget/battery.lua
+++ b/battery-widget/battery.lua
@@ -57,6 +57,21 @@ watch(
end
)
+-- Alternative to tooltip - popup message shown by naughty library. You can compare both and choose the preferred one
+--function show_battery_status()
+-- awful.spawn.easy_async([[bash -c 'acpi']],
+-- function(stdout, stderr, reason, exit_code)
+-- naughty.notify{
+-- text = stdout,
+-- title = "Battery status",
+-- timeout = 5, hover_timeout = 0.5,
+-- width = 200,
+-- }
+-- end
+-- )
+--end
+--battery_widget:connect_signal("mouse::enter", function() show_battery_status() end)
+
function show_battery_warning()
naughty.notify{
icon = "/home/pashik/.config/awesome/nichosi.png",