Files
crylia-theme/awesome/Bindings/ClientKeys.lua
2021-11-18 19:30:30 +01:00

52 lines
1.3 KiB
Lua

-- Awesome Libs
local awful = require("awful")
local gears = require("gears")
local modkey = RC.vars.modkey
return function ()
local clientkeys = gears.table.join(
awful.key(
{ modkey },
"f",
function(c)
c.fullscreen = not c.fullscreen
c:raise()
end,
{ description = "Toggle fullscreen", group = "Client" }
),
awful.key(
{ modkey },
"q",
function(c)
c:kill()
end,
{ description = "Close window", group = "Client" }
),
awful.key(
{ modkey },
"space",
awful.client.floating.toggle,
{ description = "Toggle floating window", group = "Client" }
),
awful.key(
{ modkey},
"m",
function (c)
c.maximized = not c.maximized
c:raise()
end ,
{description = "(un)maximize", group = "client"}
),
awful.key(
{ modkey, "Control" },
"m",
function (c)
c.maximized_vertical = not c.maximized_vertical
c:raise()
end,
{ description = "Unmaximize", group = "client"}
)
)
return clientkeys
end