.config/awesome/rc.lua
This commit is contained in:
parent
f7f8460b83
commit
af2ad2ac32
1 changed files with 0 additions and 27 deletions
|
@ -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)
|
function focus_raise(direction)
|
||||||
awful.client.focus.bydirection(direction)
|
awful.client.focus.bydirection(direction)
|
||||||
if client.focus then client.focus:raise() end
|
if client.focus then client.focus:raise() end
|
||||||
|
|
Loading…
Reference in a new issue