.config/awesome/rc.lua
This commit is contained in:
parent
adf8e13bb0
commit
802607545b
1 changed files with 3 additions and 2 deletions
|
@ -11,7 +11,7 @@ oni = { } -- Container for custom functions.
|
|||
|
||||
oni.maildirfmt = "/home/slash/documents/mail/%s/inbox/new/"
|
||||
|
||||
-- {{{ Error handling
|
||||
--- Error handling
|
||||
-- Check if awesome encountered an error during startup and fell back to
|
||||
-- another config (This code will only ever execute for the fallback config)
|
||||
if awesome.startup_errors then
|
||||
|
@ -34,8 +34,8 @@ do
|
|||
in_error = false
|
||||
end)
|
||||
end
|
||||
-- }}}
|
||||
|
||||
--- Functions
|
||||
function oni.focus_raise(direction)
|
||||
awful.client.focus.bydirection(direction)
|
||||
if client.focus then client.focus:raise() end
|
||||
|
@ -118,6 +118,7 @@ function oni.run_or_raise(cmd, properties)
|
|||
-- And then focus the client
|
||||
client.focus = c
|
||||
c:raise()
|
||||
awful.screen.focus(c.screen)
|
||||
return
|
||||
end
|
||||
awful.util.spawn(cmd)
|
||||
|
|
Loading…
Reference in a new issue