I'm pretty sure the string you supply can be a regex. So presumably (run-or-raise "urxvtc" (:title "^unrxvt$")) would match exactly that string.
-shawn On Tue, Oct 1, 2013 at 12:16 PM, J. David Smith <emall...@archlinux.us> wrote: > Hi, > > I was hacking around on my .stumpwmrc and stumbled upon something > interesting: the :title matching does substring-level matching. For example, > from my config: > > (defcommand urxvtc () () > (run-or-raise "urxvtc" '(:title "urxvt"))) > (defcommand emacs () () > (run-or-raise "urxvtc -e urxvt-new-emacs" '(:title "urxvt-new-emacs))) > > bound to `s-w c' and `s-w e', respectively. When I launch emacs first with > `s-w e`, `s-w c` switches to it. However, when I launch urxvt first with > `s-w c`, I can then launch emacs and switch between them with the binding > for urxvt. > > I have no reason to believe that this is unintended behavior (such substring > matching is a nice feature in almost every use case). > > My question is this: is there a built-in way to override this behavior? > > -- J. David Smith > > P.S. I've got my rc working beautifully, I ask this out of curiosity. > > _______________________________________________ > Stumpwm-devel mailing list > Stumpwm-devel@nongnu.org > https://lists.nongnu.org/mailman/listinfo/stumpwm-devel > _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/stumpwm-devel