Simultaneously switch tags as one screen in multi monitor setup

3

1

Just got setup with Awesome, after initial what-on-earth-is-this-thing confusion, I find myself liking it ;-)

One issue that I'm struggling with is a feature that many likely prefer in a multi monitor environment: switching between workspaces in one screen does not switch workspaces in other screens.

In my screen real estate limited laptop + external monitor (15"/23") setup with Compiz, I grouped applications by workspace, spanning both screens; then when switching to another workspace both screens were updated with applications relevant to the target workspace.

I can understand maintaining independent screens with 3+ monitors, but in my setup I find myself switching workspaces much more in the primary monitor than the laptop, which has very much become a secondary and somewhat limited option (as I have to ctr + mod + j over to the laptop, then mod + left/right arrow to wherever the application is that corresponds with application(s) on the primary monitor).

Is there any way to toggle workspaces simultaneously across multiple screens in Awesome? Feeling like my workflow is somewhat disjointed compared to previous Compiz setup.

virtualeyes

Posted 2013-02-25T01:10:03.050

Reputation: 193

Answers

2

Thanks to @Cris9288, this works:

awful.key({ modkey, "Control"   }, "Left", 
  function()
    for i = 1, screen.count() do
      awful.tag.viewprev(screen[i])
    end
  end ),

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

virtualeyes

Posted 2013-02-25T01:10:03.050

Reputation: 193

1

There's a follow-up question here. Perhaps you can help?

– Karan – 2013-06-10T17:44:29.017

Sorry, using i3 instead of Awesome. Also, realized I actually want independent screen switching ;-) Good luck – virtualeyes – 2013-06-10T19:38:32.420

Oh it wasn't for me, I was just posting on behalf of a new user who couldn't comment here. I've recommended to him that he ask on the same forum you did. Perhaps he'll find an answer there too, unless of course someone posts a solution for his question here. – Karan – 2013-06-10T20:34:23.323

1

As an addition to @virtualeyes, for mod+Ctrl+[number] add within a For i=1, screen.count() do loop:

    awful.key({ modkey, "Control" }, "#" .. i + 9,
              function ()
                    for j = 1, screen.count() do
                        awful.tag.viewonly(tags[j][i])
                    end 
              end),

Turiphro

Posted 2013-02-25T01:10:03.050

Reputation: 11