aboutsummaryrefslogtreecommitdiff
path: root/modules/awesome/rc.lua
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-24 16:51:08 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-24 16:51:08 -0200
commit1923910cd4a0de0403257e0a143ea9045e4b92c1 (patch)
treee73de50d311a6a7f88633772ef2632d5fc90332a /modules/awesome/rc.lua
parentc9c441e31513ca3e4f0c95617b928656ac03a0fa (diff)
downloaddotfiles-1923910cd4a0de0403257e0a143ea9045e4b92c1.tar.gz
dotfiles-1923910cd4a0de0403257e0a143ea9045e4b92c1.tar.bz2
Awesome tab behavior
Diffstat (limited to 'modules/awesome/rc.lua')
-rw-r--r--modules/awesome/rc.lua23
1 files changed, 22 insertions, 1 deletions
diff --git a/modules/awesome/rc.lua b/modules/awesome/rc.lua
index 7235b38..f07400a 100644
--- a/modules/awesome/rc.lua
+++ b/modules/awesome/rc.lua
@@ -190,9 +190,30 @@ globalkeys = awful.util.table.join(
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
+
+ --- Original tab behavior
+ ---awful.key({ modkey, }, "Tab",
+ --- function ()
+ --- awful.client.focus.history.previous()
+ --- if client.focus then
+ --- client.focus:raise()
+ --- end
+ --- end),
+
+ --- Cyclic tab behavior
+ --- See http://stackoverflow.com/questions/11697102/awesome-alttab-just-switches-between-two-apps
+ awful.key({ modkey, "Shift" }, "Tab",
+ function ()
+ -- awful.client.focus.history.previous()
+ awful.client.focus.byidx(-1)
+ if client.focus then
+ client.focus:raise()
+ end
+ end),
awful.key({ modkey, }, "Tab",
function ()
- awful.client.focus.history.previous()
+ -- awful.client.focus.history.previous()
+ awful.client.focus.byidx(1)
if client.focus then
client.focus:raise()
end