From d4216c407bab19dbbba8951caba657864383a497 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 30 Jan 2018 17:49:28 +0100 Subject: Add notification about disable notification --- rc.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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), -- cgit v1.2.3