Re: [wmii] Thunar opening in previous tag
On Mon, 16 Feb 2009, Alex Kilgore wrote: Aditya Mahajan wrote: Hi, I am using the wmii-hg2424. Whenever I try to open a second instance of thunar, it always opens on a tag where the first instance is open. To reproduce the behaviour: 1. Create a tag test:1. Press Mod+p and type thunar. 2. Create a new tag test:2. Press Mod+p and type thunar. Does the second instance of thunar open on test:2 or on test:1. For me, it opens on test:1. I am wondering if this is a feature of wmii or if there is something in my config. Hi, This is because thunar apparently just spawns a new window that is from the same process as the currently running thunar when re-run (you can test this yourself by running two thunar windows and using pgrep to see how many processes are running, i got only one). WMII opens all windows from a process on the same tag, this is intended as a feature, yes. I get the same behaviour with evince, eog, and few others, which becomes a bit annoying at times. Is it possible to circumvent this feature using the config magic? Aditya
Re: [wmii] Thunar opening in previous tag
On Mon, Feb 16, 2009 at 03:24:46AM -0500, Alex Kilgore wrote: This is because thunar apparently just spawns a new window that is from the same process as the currently running thunar when re-run (you can test this yourself by running two thunar windows and using pgrep to see how many processes are running, i got only one). WMII opens all windows from a process on the same tag, this is intended as a feature, yes. Actually, it opens all windows that specify the same group in the same tab. If you want to override it for a given app, just add to /tagules: /thunar/ - sel -- Kris Maglione It is a miracle that curiosity survives formal education. --Albert Einstein
Re: [wmii] Thunar opening in previous tag
Kris Maglione wrote: On Mon, Feb 16, 2009 at 03:24:46AM -0500, Alex Kilgore wrote: This is because thunar apparently just spawns a new window that is from the same process as the currently running thunar when re-run (you can test this yourself by running two thunar windows and using pgrep to see how many processes are running, i got only one). WMII opens all windows from a process on the same tag, this is intended as a feature, yes. Actually, it opens all windows that specify the same group in the same tab. If you want to override it for a given app, just add to /tagules: /thunar/ - sel Wow, i cant believe i missed that one, thanks for the info kris, however, i cannot get that to work with sel, it works when i add /App/ - 2 for example, it opens all windows that match the regex in tag 2 but /App/ - sel in my case just acts the same way as it did before, and opens all of the windows in the same tag for some reason, no matter what is selected Alex
Re: [wmii] Thunar opening in previous tag
On Mon, 16 Feb 2009, Alex Kilgore wrote: Kris Maglione wrote: On Mon, Feb 16, 2009 at 03:24:46AM -0500, Alex Kilgore wrote: This is because thunar apparently just spawns a new window that is from the same process as the currently running thunar when re-run (you can test this yourself by running two thunar windows and using pgrep to see how many processes are running, i got only one). WMII opens all windows from a process on the same tag, this is intended as a feature, yes. Actually, it opens all windows that specify the same group in the same tab. If you want to override it for a given app, just add to /tagules: /thunar/ - sel Wow, i cant believe i missed that one, thanks for the info kris, however, i cannot get that to work with sel, it works when i add /App/ - 2 In case of thunar, this works only if there is no existing instance of thunar. For example: 1. Add /Thunar.*/ - test to /tagrules. 2. Open thunar, it opens in test tag. 3. Go to test tag, and move thunar window to any other tag, say test:2 4. Open thunar again. It opens in test:2 instead of test So the tagrules are honored when creating the first instance of thunar. But after that, new instances open in the tag that has the last active instance. for example, it opens all windows that match the regex in tag 2 but /App/ - sel in my case just acts the same way as it did before, and opens all of the windows in the same tag for some reason, no matter what is selected I experience the same behaviour. Aditya