summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-01-30 17:49:28 +0100
committerache <ache@ache.one>2018-01-30 17:49:28 +0100
commitd4216c407bab19dbbba8951caba657864383a497 (patch)
tree05f043efdce946843db7f6846389eeef799225ec
parentClean unused shortkut (diff)
Add notification about disable notification
-rw-r--r--rc.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index d5a1255..c8105de 100644
--- a/rc.lua
+++ b/rc.lua
@@ -640,7 +640,12 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio
{description = "Toogle Wibox", group = "awesome"}),
awful.key({ modkey, "Shift" }, "t", function () blockWibox = not blockWibox end,
{description = "Lock Wibox", group = "awesome"}),
- awful.key({ modkey, "Shift" }, "b", function () notify_bat= not notify_bat end,
+ awful.key({ modkey, "Shift" }, "b", function ()
+ notify_bat = not notify_bat
+ naughty.notify({ preset = naughty.config.presets.normal, timeout=1,
+ text = "Notification d'énergie : " .. ( notify_bat and "activée" or "désactivée" )})
+
+ end,
{description = "Toggle battery warning", group = "awesome"}),
awful.key({ modkey, "Control" }, "t", function () showHideWibox() end),