use OSD (OnScreen Display) to show incoming email Subject line
posted by CodeGirlI was thinking I’d like to see the incoming subject lines of my email, not just how many new messages I had. So I wrote a procmail recipe that uses OSD:
:0c | show_new_mail
and a one liner shell script called ’show_new_mail’ [really just to clean up the procmail recipe]
grep Subject|sed -e's/Subject: /New mail: /g'|DISPLAY=:0 osd_cat -f 9x15 -
Without the “DISPLAY=:0″ part, this fails with the error “Error initializing osd: No display” but only when it’s used as a procmail recipe. It worked fine from the command line.
This requires osd_cat, which is installed with xosd
———————————————————
7/8/2006 EDIT:
Good news for M$ Windows users: there is an xosd package available for Cygwin, so you can do cool OnScreenDisplay things just like linux/XWindows.
Cygwin is a Linux-like environment for Windows. It consists of two parts:
- A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
- A collection of tools, which provide Linux look and feel.
This entry was posted on Thursday, April 21st, 2005 at 12:54 pm and is filed under linux, TipsnTricks. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.




