summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",