summaryrefslogtreecommitdiffstats
path: root/.config/awesome/ext.lua
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-10-12 08:52:53 +0200
committerGravatar Tom Willemsen2012-10-12 08:52:53 +0200
commit77c39ea0f082446f21981bd0876a4f1fde3c4807 (patch)
tree8843848d7c92d6be20a3e23bd22c0c9e5218022d /.config/awesome/ext.lua
parent8bcf0ae40fc2e9c6565567131218029768859839 (diff)
parent1f3bdb9e4490e20aefd7038a507aee50c76728dc (diff)
downloaddotfiles-77c39ea0f082446f21981bd0876a4f1fde3c4807.tar.gz
dotfiles-77c39ea0f082446f21981bd0876a4f1fde3c4807.zip
Merge remote-tracking branch 'origin/master' into phoenix
Conflicts: .config/cower/config .emacs.d/init.el
Diffstat (limited to '.config/awesome/ext.lua')
-rw-r--r--.config/awesome/ext.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/awesome/ext.lua b/.config/awesome/ext.lua
index d564867..e7bdf00 100644
--- a/.config/awesome/ext.lua
+++ b/.config/awesome/ext.lua
@@ -65,3 +65,17 @@ function run_or_raise(cmd, properties)
end
awful.util.spawn(cmd)
end
+
+function prev_client()
+ awful.client.focus.history.previous()
+ if client.focus then
+ client.focus:raise()
+ end
+end
+
+function next_client()
+ awful.client.focus.byidx(1)
+ if client.focus then
+ client.focus:raise()
+ end
+end