Yuri D'Elia wrote:
> Automatic back_and_forth of i3 is also pretty neat. When switching to
> a workspace, you can repeat the same keystroke and i3 would switch to
> the previous workspace. This should be quite easy to implement.

This one is done with this code. The commented code is the original you
may have on your rc.lua. Change it like this:

-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, keynumber do
    globalkeys = awful.util.table.join(globalkeys,
        -- awful.key({ modkey }, "#" .. i + 9,
        --           function ()
        --                 local screen = mouse.screen
        --                 if tags[screen][i] then
        --                     awful.tag.viewonly(tags[screen][i])
        --                 end
        --           end),
        awful.key({ modkey }, "#" .. i + 9,
                  function ()
                        local screen = mouse.screen
                        -- modify
                        if tags[screen][i].selected then
                            return awful.tag.history.restore()
                        end
                        -- modify end
                        if tags[screen][i] then
                            awful.tag.viewonly(tags[screen][i])
                        end
                  end),


This is written somewhere in the wiki, but don't remember where it is.

-- 
To unsubscribe, send mail to [email protected].

Reply via email to