i modded my modkey+number behavior as well:

    awful.key({ modkey }, "#" .. i + 9,
              function ()
                    local screen = mouse.screen
                    if tags[screen][i].selected then
                        return awful.tag.history.restore()
                    end
                    if tags[screen][i] then
                        awful.tag.viewonly(tags[screen][i])
                    end
              end),

so, if you press the exact same number again, you get back to the previous one.

I find it very useful, because sometimes i get on the wrong tag and
want to switch back without losing my tag history.
Or if i just want to have a quick look a a specific tag and get right
back to the one where i've been.

On 13 February 2012 01:17, Ryan T. Sawyer <[email protected]> wrote:
>> I was wondering how one might go about binding a keystroke to access the 
>> most recently
>> viewed tag (not necessarily the "next" or "previous" one numerically). For 
>> example, if I
>> have windows open on all tags (1-9) but am mostly working between tags 3 and 
>> 7 and want
>> to switch back and forth between them very quickly and easily, might there 
>> be a
>> way to do that? (Similar to running "cd -" in a shell to switch between 
>> directories).
>
> Please disregard. I had been searching the web for this and of course it is 
> not a common
> question as it appears to be present in the default config! My mistake.
>
> For reference:
>
> awful.key({ modkey, }, "Escape", awful.tag.history.restore),
>
> Regards,
>
> rts
>
> --
> To unsubscribe, send mail to [email protected].

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

Reply via email to