
Here is the relevant bit from my xmonad.hs: main = xmonad $ withUrgencyHook dzenUrgencyHook $ gnomeConfig When I echo a bell character from xterm, the corresponding button in my "task bar" flashes, however nothing else happens. dzen2 seems to be working ok, and I see nothing in .xsession-errors. I read all of the doc for UrgencyHook, played with SpawnUrgencyHook as well, I can't see what I'm doing wrong... Could it be that the task bar catches the event and prevents it from being dispatched to xmonad? Or what?

On Wed, Feb 11, 2009 at 02:13:09AM +0000, Henri Ducrocq wrote:
Here is the relevant bit from my xmonad.hs:
main = xmonad $ withUrgencyHook dzenUrgencyHook $ gnomeConfig
When I echo a bell character from xterm, the corresponding button in my "task bar" flashes, however nothing else happens. dzen2 seems to be working ok, and I see nothing in .xsession-errors. I read all of the doc for UrgencyHook, played with SpawnUrgencyHook as well, I can't see what I'm doing wrong...
Could it be that the task bar catches the event and prevents it from being dispatched to xmonad? Or what?
When you echo the bell, are you making sure that you are not on the same workspace as the terminal you are belling from? To test, do a sleep 2; echo -e '\a' ,then immediately switch workspaces. Does it work then? -- Jeremy O'Brien aka neutral_insomniac GPG key: 0xB1140FDB http://pohl.ececs.uc.edu/~jeremy/jeremy.asc Linux euclid 2.6.28-ARCH #1 Zilog(R) Z80 processor 4MHz GNU/Linux

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