2022-07-16 17:41:00 -07:00
|
|
|
local hotkeys = require("awful.hotkeys_popup")
|
|
|
|
|
2021-08-01 07:24:26 -07:00
|
|
|
return gears.table.join(
|
2022-07-16 17:41:00 -07:00
|
|
|
awful.key( {"Mod4"}, "s",
|
|
|
|
hotkeys.show_help,
|
|
|
|
{
|
|
|
|
description = "Show help",
|
|
|
|
group = "Desktop"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
|
|
|
awful.key( {"Mod4", "Control", "Shift"}, "r",
|
|
|
|
awesome.restart,
|
|
|
|
{
|
|
|
|
description = "Restart awesome",
|
|
|
|
group = "Desktop"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
2021-08-01 07:24:26 -07:00
|
|
|
awful.key( {"Mod4"}, "r",
|
|
|
|
function ()
|
|
|
|
awful.screen.focused().mypromptbox:run()
|
|
|
|
end,
|
|
|
|
{
|
|
|
|
description = "Run prompt",
|
|
|
|
group = "Launcher"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
2022-07-16 17:41:00 -07:00
|
|
|
awful.key( {"Mod4"}, "x",
|
|
|
|
function ()
|
|
|
|
awful.screen.focused().mypromptbox:run()
|
|
|
|
end,
|
|
|
|
{
|
|
|
|
description = "Run prompt",
|
|
|
|
group = "Launcher"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
2021-08-01 07:24:26 -07:00
|
|
|
awful.key( {"Mod4"}, "Return",
|
|
|
|
function ()
|
2022-07-16 19:06:55 -07:00
|
|
|
awful.spawn(config.core.terminal)
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
|
|
|
|
{
|
|
|
|
description = "Open a terminal",
|
|
|
|
group = "Launcher"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
|
|
|
awful.key( {"Mod4"}, "\\",
|
|
|
|
function ()
|
2022-07-16 19:06:55 -07:00
|
|
|
awful.spawn(config.core.browser)
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
|
|
|
|
{
|
|
|
|
description = "Open a browser tab",
|
|
|
|
group = "Launcher"
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|