awesomewm/clients/binds/keys.lua

130 lines
2.1 KiB
Lua
Raw Normal View History

2021-08-01 07:24:26 -07:00
return gears.table.join(
awful.key( {"Mod4", "Control"}, "Left",
function (c)
c.screen.tagger:move_client(c, "left")
end,
{
description = "move client left",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "Right",
function (c)
c.screen.tagger:move_client(c, "right")
end,
{
description = "move client right",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "Down",
function (c)
c.screen.tagger:move_client(c, "down")
end,
{
description = "move client down",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "Up",
function (c)
c.screen.tagger:move_client(c, "up")
end,
{
description = "move client up",
group = "client"
}
),
awful.key( {"Mod4"}, "f",
function (c)
c.fullscreen = not c.fullscreen
c:raise()
end,
{
description = "toggle fullscreen",
group = "client"
}
),
awful.key( {"Mod4", "Shift"}, "c",
function (c)
c:kill()
end,
{
description = "close",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "space",
awful.client.floating.toggle,
{
description = "toggle floating",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "Return",
function (c)
c:swap(awful.client.getmaster())
end,
{
description = "move to master",
group = "client"
}
),
awful.key( {"Mod4"}, "t",
function (c)
c.ontop = not c.ontop
end,
{
description = "toggle keep on top",
group = "client"
}
),
awful.key( {"Mod4"}, "n",
function (c)
c.minimized = true
end,
{
description = "minimize",
group = "client"
}
),
awful.key( {"Mod4"}, "m",
function (c)
c.maximized = not c.maximized
c:raise()
end,
{
description = "(un)maximize", group = "client"
}
),
awful.key( {"Mod4", "Control"}, "m",
function (c)
c.maximized_vertical = not c.maximized_vertical
c:raise()
end,
{
description = "(un)maximize vertically",
group = "client"
}
),
awful.key( {"Mod4", "Shift"}, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c:raise()
end,
{
description = "(un)maximize horizontally",
group = "client"
}
)
)