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"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
2023-10-10 11:27:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
awful.key( {"Mod4"}, "Right",
|
|
|
|
function ()
|
|
|
|
awful.client.focus.byidx(1)
|
|
|
|
end,
|
|
|
|
{
|
|
|
|
description = "Focus next",
|
|
|
|
group = "Client"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
|
|
|
awful.key( {"Mod4"}, "Left",
|
|
|
|
function ()
|
|
|
|
awful.client.focus.byidx(-1)
|
|
|
|
end,
|
|
|
|
{
|
|
|
|
description = "Focus previous",
|
|
|
|
group = "Client"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-17 20:29:08 -07:00
|
|
|
awful.key( {"Mod4", "Shift"}, "c",
|
2021-08-01 07:24:26 -07:00
|
|
|
function (c)
|
2022-07-17 20:29:08 -07:00
|
|
|
c:kill()
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
{
|
2022-07-17 20:29:08 -07:00
|
|
|
description = "close",
|
2021-08-01 07:24:26 -07:00
|
|
|
group = "client"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
2022-07-17 20:29:08 -07:00
|
|
|
awful.key( {"Mod4", "Control"}, "Return",
|
2021-08-01 07:24:26 -07:00
|
|
|
function (c)
|
2022-07-17 20:29:08 -07:00
|
|
|
c:swap(awful.client.getmaster())
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
{
|
2022-07-17 20:29:08 -07:00
|
|
|
description = "move to master",
|
2021-08-01 07:24:26 -07:00
|
|
|
group = "client"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
2022-07-17 20:29:08 -07:00
|
|
|
awful.key( {"Mod4"}, "f",
|
2021-08-01 07:24:26 -07:00
|
|
|
awful.client.floating.toggle,
|
|
|
|
{
|
|
|
|
description = "toggle floating",
|
|
|
|
group = "client"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
2022-07-17 20:29:08 -07:00
|
|
|
awful.key( {"Mod4"}, "g",
|
2021-08-01 07:24:26 -07:00
|
|
|
function (c)
|
2022-07-17 20:29:08 -07:00
|
|
|
c.fullscreen = not c.fullscreen
|
|
|
|
c:raise()
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
{
|
2022-07-17 20:29:08 -07:00
|
|
|
description = "toggle fullscreen",
|
2021-08-01 07:24:26 -07:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|