29 lines
1 KiB
Lua
29 lines
1 KiB
Lua
local awful = require("awful")
|
|
local gears = require("gears")
|
|
|
|
navigation_keys = gears.table.join(
|
|
-- Layout manipulation
|
|
awful.key({ modkey, "Shift" }, "j", function() awful.client.swap.byidx(1) end,
|
|
{ description = "swap with next client by index", group = "client" }),
|
|
|
|
awful.key({ modkey, "Shift" }, "k", function() awful.client.swap.byidx(-1) end,
|
|
{ description = "swap with previous client by index", group = "client" }),
|
|
|
|
awful.key({ modkey, "Control" }, "j", function() awful.screen.focus_relative(1) end,
|
|
{ description = "focus the next screen", group = "screen" }),
|
|
|
|
awful.key({ modkey, "Control" }, "k", function() awful.screen.focus_relative(-1) end,
|
|
{ description = "focus the previous screen", group = "screen" }),
|
|
|
|
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
|
|
{ description = "jump to urgent client", group = "client" }),
|
|
|
|
awful.key({ modkey, }, "Tab",
|
|
function()
|
|
awful.client.focus.history.previous()
|
|
if client.focus then
|
|
client.focus:raise()
|
|
end
|
|
end,
|
|
{ description = "go back", group = "client" })
|
|
)
|