Le 10/01/2013 17:24, Thomas Constans a écrit :
Hello,
I am a faithful and longtime user of awesome. I use dual monitor setup
with xrandr.
Some applications are bound to specific tag by appropriate rules. (ie
firefox always go to tag 4, thunderbird on tag 5, etc.)
When on dual screen, i would love child windows (eg. firefox password
prompt, email attachment save as dialog, ...) to appears on same
screen+tag as parent.
I knew of a hack /script that did this, but my searches on wiki and
mailing list have been unsuccessful.
any idea / pointers would be greatly appreciated.
Keep up the good work.
Hi Thomas !
I have the same problem and I found a (dirty?) hack today, that seems to
work on me.
Here's how I modified my generic rule (I juste added a callback
function, which checks if an existing client has the same class, and
attributes screen property as a result):
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
keys = clientkeys,
size_hints_honor = false,
buttons = clientbuttons },
callback = function (c)
local clients = client.get()
for i, c2 in pairs(clients) do
if c.class == c2.class then
c.screen = c2.screen
end
end
end},
-- another rules
}
Hopping it will be uselful to you.
W.
--
To unsubscribe, send mail to [email protected].