Add naughty.notify alternative

This commit is contained in:
streetturtle 2017-02-08 20:38:13 -05:00
parent a793ef58e7
commit c57a059f55
1 changed files with 15 additions and 0 deletions

View File

@ -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",