Adds shortcut for main social media vs all

This commit is contained in:
Thomas Forgione 2019-04-08 14:18:00 +02:00
parent 6aedc119f6
commit edf1cd6989
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 10 additions and 5 deletions

15
rc.lua
View File

@ -464,6 +464,16 @@ globalkeys = awful.util.table.join(
naughty.notify({title = "Starting " .. options.browser})
end, {description="start the web browser", group="shortcuts"}),
awful.key({modkey}, "z", function()
awful.spawn.easy_async(options.browser .. " https://hangouts.google.com https://messenger.com https://web.telegram.org https://gitter.im https://vortex-n7.slack.com/ https://framagenda.org/apps/calendar/", function() end)
naughty.notify({title = "Starting all social media"})
end, {description="Open all social media", group="shortcuts"}),
awful.key({modkey}, "e", function()
awful.spawn.easy_async(options.browser .. " https://hangouts.google.com https://messenger.com https://web.telegram.org", function() end)
naughty.notify({title = "Starting main social media"})
end, {description="Open main social media", group="shortcuts"}),
awful.key({modkey}, "l", function()
awful.spawn.easy_async_with_shell('sleep 1 && xset dpms force off && slock', function() end)
end, { description="Locks the screen", group="screen control"}),
@ -504,11 +514,6 @@ globalkeys = awful.util.table.join(
awful.spawn.easy_async("tvrs only-secondary --sound", function() end)
end, {description="Disable the primary screen, using only the second", group="screen control"}),
awful.key({modkey}, "z", function()
awful.spawn.easy_async(options.browser .. " https://hangouts.google.com https://messenger.com https://web.telegram.org https://gitter.im https://vortex-n7.slack.com/ https://framagenda.org/apps/calendar/", function() end)
naughty.notify({title = "Starting social media"})
end, {description="Open social media", group="shortcuts"}),
awful.key({modkey}, "d", function()
if naughty_suspended then
naughty.resume()