Oh, I didn&#39;t realise the hook was only used for windows on different workspaces... It does work perfectly indeed, thanks!<br><br>I just used it to invoke a python script showing a native Gnome notification with a &quot;Go to window&quot; button, next I&#39;ll try porting that script to Haskell.<br>
<br><div class="gmail_quote">2009/2/13 Jeremy O&#39;Brien <span dir="ltr">&lt;<a href="mailto:obrien654j@gmail.com">obrien654j@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, Feb 11, 2009 at 02:13:09AM +0000, Henri Ducrocq wrote:<br>
</div><div><div></div><div class="Wj3C7c">&gt; Here is the relevant bit from my xmonad.hs:<br>
&gt;<br>
&gt; main = xmonad<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; $ withUrgencyHook dzenUrgencyHook<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; $ gnomeConfig<br>
&gt;<br>
&gt; When I echo a bell character from xterm, the corresponding button in my<br>
&gt; &quot;task bar&quot; flashes, however nothing else happens. dzen2 seems to be working<br>
&gt; ok, and I see nothing in .xsession-errors.<br>
&gt; I read all of the doc for UrgencyHook, played with SpawnUrgencyHook as well,<br>
&gt; I can&#39;t see what I&#39;m doing wrong...<br>
&gt;<br>
&gt; Could it be that the task bar catches the event and prevents it from being<br>
&gt; dispatched to xmonad?<br>
&gt; Or what?<br>
<br>
</div></div><div><div></div><div class="Wj3C7c">When you echo the bell, are you making sure that you are not on the same<br>
workspace as the terminal you are belling from? To test, do a<br>
<br>
sleep 2; echo -e &#39;\a&#39;<br>
<br>
,then immediately switch workspaces. Does it work then?<br>
<br>
--<br>
Jeremy O&#39;Brien aka neutral_insomniac<br>
GPG key: 0xB1140FDB <a href="http://pohl.ececs.uc.edu/%7Ejeremy/jeremy.asc" target="_blank">http://pohl.ececs.uc.edu/~jeremy/jeremy.asc</a><br>
Linux euclid 2.6.28-ARCH #1 Zilog(R) Z80<br>
processor 4MHz GNU/Linux<br>
</div></div><br>_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/xmonad" target="_blank">http://www.haskell.org/mailman/listinfo/xmonad</a><br>
<br></blockquote></div><br>