diff options
author | ache <ache@ache.one> | 2018-01-30 17:49:28 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2018-01-30 17:49:28 +0100 |
commit | d4216c407bab19dbbba8951caba657864383a497 (patch) | |
tree | 05f043efdce946843db7f6846389eeef799225ec | |
parent | Clean unused shortkut (diff) |
Add notification about disable notification
-rw-r--r-- | rc.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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), |