]> gitweb.fluxo.info Git - metadot.git/commitdiff
Using two simultaneous tab behaviors
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 19:40:03 +0000 (17:40 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 19:40:03 +0000 (17:40 -0200)
modules/awesome/rc.lua

index f07400a5fd9931f30e1cd4a115c66f2dd9ee76d0..7e79e55119a679f14e0a30670b97ab17107bc2b3 100644 (file)
@@ -191,18 +191,18 @@ globalkeys = awful.util.table.join(
     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),
+    --- Default 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",
+    awful.key({ "Mod1", "Shift"   }, "Tab",
         function ()
             -- awful.client.focus.history.previous()
             awful.client.focus.byidx(-1)
@@ -210,7 +210,7 @@ globalkeys = awful.util.table.join(
                 client.focus:raise()
             end
         end),
-    awful.key({ modkey,           }, "Tab",
+    awful.key({ "Mod1",           }, "Tab",
         function ()
             -- awful.client.focus.history.previous()
             awful.client.focus.byidx(1)