Tag client by class AND view it's started from ?
how can I tag client not only by its WM_CLASS but also by the current view it's started from ?
(match :class => "xterm") and (Subtlext::View.current.name == "dev")
I'd like to achieve if terminal is started from view named "dev" it won't go to 1st view "terms" as by default but stays on the view "dev".
Any idea ?
The easiest way to do that is with the Launcher from subtle-contrib. With it you can start your terminal like
urxvt @dev (with autocompletion for apps and views) and it will tag the window to stay on the dev view.
Thx Christoph !
The terminal gets spawned either manually from Launcher but also from gVim editor and possibly by other ways so I've looked for a more generic solution. Adding of tag replacement code to client_create hook did the job.
Yep, that should work, but requires to check many things before you retag the window. And yw. ;)