1 |
On Tue, Jul 09, 2013 at 10:54:31AM -0600, Joseph wrote: |
2 |
> How to design a sticky note pop-up when file is present? |
3 |
> |
4 |
> I would like to check if file is present via and open a terminal window with a simple message. |
5 |
> I think a simple bash script and a cron job would do the trick or is there a better solution? |
6 |
|
7 |
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. |
8 |
|
9 |
#!/bin/sh |
10 |
|
11 |
if [ -z "$DISPLAY" ]; then export DISPLAY=localhost:0; fi |
12 |
xmopts= |
13 |
while [ "$1" = "-x" ]; do |
14 |
xmopts="$xmopts $2" |
15 |
shift;shift |
16 |
done |
17 |
echo "$@ |
18 |
" | xmessage -bg green -fg red -file - -title Alert -nearmouse -default okay $xmopts |
19 |
|
20 |
-- |
21 |
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. |
22 |
Felix Finch: scarecrow repairman & rocket surgeon / felix@×××××××.com |
23 |
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 |
24 |
I've found a solution to Fermat's Last Theorem but I see I've run out of room o |