From c57a059f55d1202c609b71717877fdcca521d611 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 8 Feb 2017 20:38:13 -0500 Subject: Add naughty.notify alternative --- battery-widget/battery.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'battery-widget') 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", -- cgit v1.2.3