4

The answer propsed in Simultaneously switch tags as one screen in multi monitor setup

is not working in awesome 3.5. Any solutions?

Since I' m new to awesome and lua, I don' t know how to do it myself. And I have no right to comment on the anwser. Sorry for restarting a question.

  • I left a comment for you. You might also want to post a comment in the forum thread where the answer was obtained from. If you manage to solve the problem don't forget to post an answer below. – Karan Jun 10 '13 at 17:43
  • 1
    Thanks for pointing out there is the original post. The original post was for 3.5. – xgdgsc Jun 11 '13 at 3:58
4
awful.key({ modkey, "Control"   }, "Left", 
function()
    for i = 1, screen.count() do
        awful.tag.viewprev(i)
    end
end ),

awful.key({ modkey, "Control"   }, "Right", 
function()
    for i = 1, screen.count() do
        awful.tag.viewnext(i)
    end
end ),

Found on the original post for 3.5.

2

For completeness here's the change for the 1..9 keys:

awful.key({ modkey }, "#" .. i + 9,
    function ()
        for screen = 1, screen.count() do
            local tag = awful.tag.gettags(screen)[i]
            if tag then
                awful.tag.viewonly(tag)
            end
        end
    end
),

And to handle the click on the taglist:

mytaglist.buttons = awful.util.table.join(
  awful.button({ }, 1, function(tag)
    local i = awful.tag.getidx(tag)
    for screen = 1, screen.count() do
        local tag = awful.tag.gettags(screen)[i]
        if tag then
           awful.tag.viewonly(tag)
        end
    end
  end),
[...]

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.