summaryrefslogtreecommitdiffstats
path: root/.config/awesome
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome')
-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