Todo popup on X login

Yesterday I was working on several things, but needed to interrupt my stuff. So I came up with this little piece of code I put in my .xinitrc. It checks if the file remindme.txt exists and than checks, if it has any content. To display my notes I use xmessage. The content of remindme.txt is plain text.

if [[ -e remindme.txt ]]; then
    test `wc -l remindme.txt | cut -d' ' -f1` -gt 0 && \
        xmessage -geometry 320x400+1600+17 -file remindme.txt &
fi

When I now login and my window manager starts, it also displays my notes.

Short and quick!

Update #1: Forgot to enable comments…

Update #2: Made a screenshot earlier, but forgot to upload it…

Comments




If you can't read the letters on the image, download this .wav file to get them read to you.
Posted 2010/09/03 10:45 · Julian Knauer
blog/2010/09/03.todo.popup.on.x.login.txt · Last modified: 2010/09/03 21:27 by jpk
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0