From dd7c1d4aa0869dcbe9b2e81e708afb2264e0ebfb Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 7 Oct 2012 22:14:13 +0200 Subject: .config/awesome/ext.lua --- .config/awesome/ext.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- cgit v1.2.3-54-g00ecf