<div class="gmail_quote">On Tue, Oct 4, 2011 at 1:14 PM, Jorge Almeida <span dir="ltr">&lt;<a href="mailto:jjalmeida@gmail.com">jjalmeida@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5">On Tue, Oct 4, 2011 at 5:49 PM, Dana Jansens &lt;<a href="mailto:dana@orodu.net">dana@orodu.net</a>&gt; wrote:<br>
&gt; On Tue, Oct 4, 2011 at 12:27 PM, Jorge Almeida &lt;<a href="mailto:jjalmeida@gmail.com">jjalmeida@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Oct 4, 2011 at 9:18 AM, Manolo Martínez<br>
&gt;&gt; &lt;<a href="mailto:manolo@austrohungaro.com">manolo@austrohungaro.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; It would be nice to improve this solution in at least the following<br>
&gt;&gt; &gt; respect: when<br>
&gt;&gt; &gt; editing a message in mutt, vim takes over and the window changes title,<br>
&gt;&gt; &gt; so that<br>
&gt;&gt; &gt; wmctrl no longer recognises it. Taking<br>
&gt;&gt; &gt; &quot;-F&quot; out would take care of that (&quot;mutt&quot; is part of the window title<br>
&gt;&gt; &gt; when vim<br>
&gt;&gt; &gt; edits a mutt file), but with the drawback that if I were editing<br>
&gt;&gt; &gt; , say, .muttrc, Alt+F5 would be fooled into raising *that* window. But,<br>
&gt;&gt; &gt; oh well, I think the<br>
&gt;&gt; &gt; instruction as it stands is idiotproof enough for my own level of<br>
&gt;&gt; &gt; idiocy.<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; One idea that comes to mind is to edit the config of mutt in the place<br>
&gt;&gt; where you tell it what editor to use. Maybe you could tell mutt to use<br>
&gt;&gt; something like<br>
&gt;&gt;        /usr/bin/vim +c &#39;set title titlestring=&quot;Mutt&quot;&#39;<br>
&gt;&gt; I tried this from a terminal and it doesn&#39;t works as expected: the title<br>
&gt;&gt; becomes &quot;set title...&quot;. You still get the string &quot;Mutt&quot;, and so I guess<br>
&gt;&gt; it would work if you use something like &quot;Muttwindow&quot; to distinguish it<br>
&gt;&gt; from a window where .muttrc is being edited. But it&#39;s an ugly hack.<br>
&gt;&gt; What happens is that vim is following the behavior of bash: it puts the<br>
&gt;&gt; name of the command executed, or the current directory, if no command<br>
&gt;&gt; was provided, as title. Before entering interactive mode, bash<br>
&gt;&gt; executes the command contained in the env variable PROMPT_COMMAND, if<br>
&gt;&gt; set. In ArchLinux, it is set by /etc/bash.bashrc, and is an &quot;echo<br>
&gt;&gt; some-stuff-with-escape-codes&quot;. I had to comment it<br>
&gt;&gt; out, and I think it was a bad idea, anyway. In vim, I don&#39;t know what<br>
&gt;&gt; configuration is causing this. Maybe someone else have some clue?<br>
&gt;<br>
&gt; Unless I missed some important context.. use the terminal&#39;s name to find it<br>
&gt; instead of the title?<br>
&gt;<br>
<br>
</div></div>I&#39;m not sure I understand, but if you mean something like &quot;urxvt -name<br>
Mutt&quot;, how to use wmctrl to raise it? &quot;wmctrl -a &lt;WIN&gt;&quot; works as long as<br>
&lt;WIN&gt; contains a string we know of in advance, and the string must be<br>
contained in the window title. Any other alternative?<br></blockquote><div><br></div><div>Oh I guess it would have to be the class not the name with wmctrl -x.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<div><div></div><div class="h5"><br>
J.A.<br>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div></div></blockquote></div><br>