You are not logged in.
Hi,
is there a way to set an urgent hint for a window from a bash script?
I want to get notified when claws-mail receive new mails. I already looked for plugins for claws-mail and in the preferences, but there is no plugin or option to set the window urgent hint when receiving new mails.
Thanks for any help.
Offline
And how would you use bash to extend claws-mail for that ?
If you want to use bash to mark a terminal window urgent from inside a script you could run echo -e "\a" (but the terminal emulator should be able to set the urgent hint upon receiving the terminal bell - for example, urxvt can do this)
But isn't there a notification plugin for claws-mail ?
Last edited by moljac024 (2009-09-20 14:56:41)
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
And how would you use bash to extend claws-mail for that ?
There is an option in preferences, which allows to execute a command (or a bash script ) after an automatic check for new mails. So I thought, I could somehow identify the claws-mail window and set the urgent hint for it with a bash script.
But isn't there a notification plugin for claws-mail ?
There is also a notification plugin for claws mail, but it does not support the "set urgent hint" option (at least there was nothing mentioned in the described for this plugin).
Offline
And how would you use bash to extend claws-mail for that ?
There is an option in preferences, which allows to execute a command (or a bash script ) after an automatic check for new mails. So I thought, I could somehow identify the claws-mail window and set the urgent hint for it with a bash script.
I see....well that is highly dependant on your window manager, which one do you use ?
If it's somewhat EWMH compliant you might be able to do something with wmctrl (it's in community), but I don't think you'll be able to set the urgent hint....you could also use dzen, zenity, osd...there are multiple commands you could run to notify yourself of new mail
EDIT: But I don't see that option (I use claws-mail too). There is an option for specifying an external command to run TO RECEIVE MAIL, perhaps you mis-read that one ?
Last edited by moljac024 (2009-09-20 15:26:39)
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
I see....well that is highly dependant on your window manager, which one do you use ?
E17 (enlightenment window manager)
EDIT: But I don't see that option (I use claws-mail too). There is an option for specifying an external command to run TO RECEIVE MAIL, perhaps you mis-read that one ?
No, I meant the option Preferences->Receiving->After checking for new mail->Run command. But somehow the command to execute (if you specify one) is ignored. Neither a bash script nor a normal command, like "gimp", will be excuted, no matter if new mails were received or not.
It seems I have to use another method to notify me for new mails .
But thanks anyway.
Last edited by otti (2009-09-20 16:21:58)
Offline
Please excuse me for necro-ing this thread, but it's one of the top results for "window set urgent"...
wmctrl works, as moljac024 mentioned. It isn't explicitly mentioned in wmctrl's documentation, but you can use something like the following command to add an urgent hint to urxvt:
wmctrl -r "urxvt" -b add,demands_attention
Offline
Please excuse me for necro-ing this thread, but it's one of the top results for "window set urgent"...
...
thank you!
Offline