On Tue, Jul 09, 2013 at 10:54:31AM -0600, Joseph wrote:
> How to design a sticky note pop-up when file is present?
> 
> I would like to check if file is present via and open a terminal window with 
> a simple message.
> I think a simple bash script and a cron job would do the trick or is there a 
> better solution?

Only partially related, I wrote the following dumb little script for crontab 
notifies, or to check a laptop battery every 5 minutes and report if below a 
certain level, etc.  Really simple, but it works on most X systems.

    #!/bin/sh

    if [ -z "$DISPLAY" ]; then export DISPLAY=localhost:0; fi
    xmopts=
    while [ "$1" = "-x" ]; do
        xmopts="$xmopts $2"
        shift;shift
    done
    echo "$@
    " | xmessage -bg green -fg red -file - -title Alert -nearmouse -default 
okay $xmopts

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o

Reply via email to