This is how I was able to do it using my rc.lua config. I'm running version
3.5.5 so it may be different from yours, but I think the only real
difference here may be syntactical; the basic concept is the same. Also,
I've put all of about 15 minutes into solving this problem and there is
almost certainly a better way to do it, but this should get you headed in
the right direction at least. As far as whether or not you *should *is
another question entirely. I would highly recommend that you try using
separate tag lists for each screen before you attempt to emulate the
behavior of other, inferior window managers ;-)

*To get the number keys to work properly, I added the bold for loops to the
following awful.key definitions:*

for i = 1, 10 do
    globalkeys = awful.util.table.join(globalkeys,
        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),
        awful.key({ modkey, "Control" }, "#" .. i + 9,
                  function ()
*                      for screen = 1, screen.count() do*
                          local tag = awful.tag.gettags(screen)[i]
                          if tag then
                             awful.tag.viewtoggle(tag)
                          end
                      *end*
                  end),

*Then to get the tag list to only show on one monitor, I added this if
statement. The value "2" here corresponds to my primary monitor. You may
have to set this to 1 or 2 depending on which monitor you want the tag list
and run prompts to be on:*

*if s == 2 then*
    left_layout:add(mylauncher)
    left_layout:add(mytaglist[s])
    left_layout:add(mypromptbox[s])
*end*


--

    Will Tomlinson

On Fri, Dec 12, 2014 at 7:02 PM, Javier Garcia <[email protected]>
wrote:
>
> Yes, I want to have just one tag for both monitors, what should I do?
>
> El viernes, 12 de diciembre de 2014, William Tomlinson <
> [email protected]> escribió:
>
> Do you intend to "lock" both monitors to the same tag? The reason there
>> are two tag lists is because they are independent of each other.
>>
>> --
>>
>>     Will Tomlinson
>>
>> On Fri, Dec 12, 2014 at 3:02 PM, Javier García <[email protected]>
>> wrote:
>>>
>>> Hi,
>>>
>>> I have two monitors, so when I start awesome I get a list of tags in
>>> each monitor. How to remove the list in one of them?
>>>
>>> Ubuntu 14.04 and 3.4.15
>>>
>>> --
>>> To unsubscribe, send mail to [email protected].
>>>
>>

Reply via email to