.config/awesome/rc.lua

This commit is contained in:
Tom Willemsen 2012-09-12 23:26:52 +02:00
parent ab1346c7a8
commit f7f8460b83

View file

@ -223,6 +223,11 @@ function keyhandler (mod, key, event)
return false return false
end end
function focus_raise(direction)
awful.client.focus.bydirection(direction)
if client.focus then client.focus:raise() end
end
-- {{{ Key bindings -- {{{ Key bindings
local bind = keychain local bind = keychain
local sub = keychain.sub local sub = keychain.sub
@ -234,14 +239,11 @@ globalkeys = awful.util.table.join(
if client.focus then client.focus:raise() end if client.focus then client.focus:raise() end
end), end),
sub({ "Shift", }, "o", sub({ "Shift", }, "o",
function () function () awful.screen.focus_relative(1) end),
awful.screen.focus_relative(1) sub({ }, "f", function () focus_raise("right") end),
end), sub({ }, "b", function () focus_raise("left") end),
sub({ }, "f", sub({ }, "n", function () focus_raise("down") end),
function () sub({ }, "p", function () focus_raise("up") end)}),
awful.client.focus.bydirection("right")
if client.focus then client.focus:raise() end
end) }),
awful.key({ modkey, }, "Left", awful.tag.viewprev ), awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ), awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore), awful.key({ modkey, }, "Escape", awful.tag.history.restore),