Why doesn't regex work the same in the i3 config?
I definitely can move only the windows with 'Private Browsing' in the title using a terminal to run this command:
i3-msg [title=".Private.Browsing."] move to workspace "Private Browsing"and this works too:
i3-msg [title=".*\(Private.Browsing\).*"] move to workspace "Private Browsing"In the i3 config, these commands work:
assign [class=".*Firefox.*"] "Firefox Window" assign [title=".*Firefox.*"] "Firefox Window 2" assign [title=".*Mozilla.*"] "Firefox Window 3"
these don't work (and they are identical to the ones above):
assign [title=".*Private.*"] "Firefox Window 4" assign [title=".*Private.Browsing.*"] "Firefox Window 5" assign [title=".*\(Private Browsing\).*"] "Private Browsing"
This is what I got when I xpropped the normal and private windows:
WM_NAME(STRING) = "Mozilla Firefox Start Page - Mozilla Firefox" WM_NAME(STRING) = "Private Browsing - Mozilla Firefox (Private Browsing)"
So, all of the commands work from a terminal, but only some work in i3. What's happening here?
Dupe: https://faq.i3wm.org/question/2867/how-do-i-make-firefox-open-a-private-browsing-window-on-another-workspace/
That was my question too, and it wasn't resolved then. However, this is specifically about regex not working (not necessarily about Firefox), considering that I've got examples of it working in terminal and it not working in the i3 config.
Okay, I was wrong.