В Tue, 13 Mar 2012 16:38:33 +0100 Giorgos Keramidas <[email protected]> пишет:
> On Tue, Mar 13, 2012 at 7:44 AM, Anurag Priyam > <[email protected]> wrote: > > > > On Mon, Mar 12, 2012 at 5:38 PM, Денис <[email protected]> wrote: > > [...] > > > And dialog-windows appears allways as slaves? > > > > https://awesome.naquadah.org/wiki/FAQ#How_to_start_clients_as_slave_windows_instead_of_master.3F > > [-- To the original poster: --] > > Note that you can also write a fully *custom* callback function > that checks for more things, e.g. for the currently selected > tag name(s). > > A friend recently asked me if it's possible to call setslave() > only for his "www" tag, where he keeps a master window with > his preferred browser open, and after a bit of discussion we > agreed that the following is the best for his needs: > > > { rule = {}, > > properties = {}, > > callback = function(c) > > -- If the 'www' tag is visible, we want to open new > > -- client windows as slaves instead of taking over > > -- the master. > > local cur_tag = awful.tag.selected(c.screen) > > if cur_tag.name == "1-www" then > > awful.client.setslave(c) > > end > > end > > } > > The callback code can be as elaborate or simple as you want :) Thank you at all! I allready solved this with this code: { rule = { class = "Pidgin", role = "buddy_list" }, properties = { tag = tags[1][4]},}, { rule = { class = "Pidgin", role = "conversation" }, properties = { tag = tags[1][4]}, callback = awful.client.setslave}, for setting pidgin contact-list as master and overs as slaves. -- To unsubscribe, send mail to [email protected].
