Added suspend / resume notifications shortcuts
This commit is contained in:
parent
d3ee45e4c9
commit
8182fa35d2
11
rc.lua
11
rc.lua
|
@ -23,6 +23,7 @@ local email_widget = require("awesome-wm-widgets.email-widget.email")
|
||||||
-- Custom imports
|
-- Custom imports
|
||||||
local options = require("options")
|
local options = require("options")
|
||||||
home = os.getenv('HOME')
|
home = os.getenv('HOME')
|
||||||
|
local naughty_suspended = false
|
||||||
|
|
||||||
os.execute('xset m 16/1 0')
|
os.execute('xset m 16/1 0')
|
||||||
os.setlocale("fr_FR.UTF-8")
|
os.setlocale("fr_FR.UTF-8")
|
||||||
|
@ -501,6 +502,16 @@ globalkeys = awful.util.table.join(
|
||||||
naughty.notify({title = "Starting social media"})
|
naughty.notify({title = "Starting social media"})
|
||||||
end, {description="Open social media", group="shortcuts"}),
|
end, {description="Open social media", group="shortcuts"}),
|
||||||
|
|
||||||
|
awful.key({modkey}, "d", function()
|
||||||
|
if naughty_suspended then
|
||||||
|
naughty.resume()
|
||||||
|
naughty_suspended = false
|
||||||
|
else
|
||||||
|
naughty.suspend()
|
||||||
|
naughty_suspended = true
|
||||||
|
end
|
||||||
|
end, {description="Suspend / Resume notifications", group="shortcuts"}),
|
||||||
|
|
||||||
awful.key({modkey, "Shift"}, "m", function()
|
awful.key({modkey, "Shift"}, "m", function()
|
||||||
awful.spawn.easy_async('sleep 0.5', function()
|
awful.spawn.easy_async('sleep 0.5', function()
|
||||||
for i = 1, #options.email do
|
for i = 1, #options.email do
|
||||||
|
|
Loading…
Reference in New Issue