.config/awesome/rc.lua

This commit is contained in:
Tom Willemsen 2012-09-12 23:27:44 +02:00
parent f7f8460b83
commit af2ad2ac32

View file

@ -196,33 +196,6 @@ root.buttons(awful.util.table.join(
))
-- }}}
function keyhandler (mod, key, event)
if event == "release" then return true end
if key == "o" then
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
elseif key == "O" then
awful.screen.focus_relative(1)
elseif key == "f" then
awful.client.focus.bydirection("right")
if client.focus then client.focus:raise() end
elseif key == "b" then
awful.client.focus.bydirection("left")
if client.focus then client.focus:raise() end
elseif key == "n" then
awful.client.focus.bydirection("down")
if client.focus then client.focus:raise() end
elseif key == "p" then
awful.client.focus.bydirection("up")
if client.focus then client.focus:raise() end
else
naughty.notify({text=key})
end
return false
end
function focus_raise(direction)
awful.client.focus.bydirection(direction)
if client.focus then client.focus:raise() end