Hi, thx Rena and Alexis! Yes it was a copy paste error ... So far it seems to work as intended when I use
awful.rules.rules = rules_always at the end. Best Johanens On Fri, Jun 12, 2015 at 9:15 AM, Alexis BRENON <[email protected]> wrote: > Hi Johannes, > > First of all, I don't know if you did a copy paste, but at the end of your > config file you'd better write : > run_once("firefox") > awful.rules.rules = rules_ALWAYS > > Nevertheless, I don't know if you can change rules on the fly... Reading > the code quicly, it seems possible. > Let us know about the last line of your rc.lua, we will see deeper after. > > Kind regards, > Alexis > > Le jeu. 11 juin 2015 à 16:22, Johannes Sauer <[email protected]> a > écrit : > >> Hi, >> >> what I want to do is automatically start application on a certain tag. >> However when I later start another instance of the application I want it to >> appear on the tag I am at that moment. >> I tried to do something like this in rc.lua: >> >> rules_always = { >> -- All clients will match this rule. >> { rule = { }, >> properties = { border_width = beautiful.border_width, >> border_color = beautiful.border_normal, >> focus = true, >> keys = clientkeys, >> buttons = clientbuttons } }, >> >> -- Set Thunderbird to always map on tags number 3 of screen 1. >> { rule = { class = "Thunderbird" }, >> properties = { tag = tags[1][3] } }, >> } >> >> rules_startup = { >> -- Set Firefox to always map on tags number 3 of screen 1. >> { rule = { class = "Firefox" }, >> properties = { tag = tags[1][2] } }, >> } >> >> awful.rules.rules = awful.util.table.join(rules_always, rules_startup) >> >> then at the end of rc.lua: >> >> run_once("firefox") >> >> awful.rules.rules = rules_startup >> >> However the effect is that still all rules will be applied, i.e. every >> new instance of firefox will appear on tag 2. >> >> What am I doing wrong? >> >> Best, >> Johannes >> >> PS: My awesome version is 3.4.11, don't think it's relevant for this >> question. >> >>
