Add key for going to sleep

This commit is contained in:
Thomas Avé 2022-11-22 16:18:29 +01:00
parent 8a58a696d7
commit 75eebc16c4
1 changed files with 7 additions and 0 deletions

View File

@ -172,6 +172,13 @@ keys.globalkeys = gears.table.join(
end,
{description = "Clipboard manager", group = "launcher"}
),
-- Go to sleep
awful.key({"Control", "Mod2", "Mod4"}, "q",
function()
awful.spawn.with_shell('systemctl suspend')
end,
{description = "Clipboard manager", group = "launcher"}
),
-- Quake
awful.key({ }, "F9", function () awful.screen.focused().quake:toggle() end),