summaryrefslogtreecommitdiffstats
path: root/.config/awesome
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-09-13 17:14:39 +0200
committerGravatar Tom Willemsen2012-09-13 17:14:39 +0200
commit802607545beea16c5db8fdf4d2947e32aa04d3a6 (patch)
treeadbdd3918a40b53b1bd01f3dde345e276d148338 /.config/awesome
parentadf8e13bb0e722ca6e98d85182b41a47a6e26621 (diff)
downloaddotfiles-802607545beea16c5db8fdf4d2947e32aa04d3a6.tar.gz
dotfiles-802607545beea16c5db8fdf4d2947e32aa04d3a6.zip
.config/awesome/rc.lua
Diffstat (limited to '.config/awesome')
-rw-r--r--.config/awesome/rc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index b544d93..03067e2 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -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)