On 05/07/12 08:11, Alfredo Palhares wrote:
Excerpts from Dariusz Dwornikowski's message of Fri May 04 20:43:53 +0200 2012:
1. When I add activate external display, all my clients (windows) form
my LVDS screen momentarily switch to the external display. Is there a
way to force them to stay. I always use my LVDS as the primary for
work (coding, browsing) and the external for reading/presentations.
Oh man i gate this too, specially when doing presentations everything got
a mess. Until i found this library of this awesome guy[1]

Screenful can only manage yours screens (executing some actions when you connect/disconnect monitor). If you want to force some windows to stay on given tag (each monitor has own set of tags) you need to add additional rules to awful.rules.rules in rc.lua eg.

{ rule = { class = "Firefox" },
      properites = { tag = tags[1][2] } }

will always show firefox on second tang on first monitor. Or if you want always 
switch window to second screen when it appears:

{ rule = { icon_name = "Eclpse " }, -- for first splash screen
      properties = { floating = true },
      callback = function(c)
              if screen.count() == 1 then
                  c:tags({ tags[1][3] })
              else
                  c:tags({ tags[2][3] })
              end
      end
}

you need to add callback property, now when window with icon name "Eclipse " appears and there is only one screen it will be moved/shown on third tag on *first* monitor, but when there is more then one screen it will show on the third tag on *second* screen

--
Best regards

GSM: +48 695 192 160
Blog: http://luksza.org
LinkedIn: http://www.linkedin.com/in/dariuszluksza

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

Reply via email to