Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] pop up windows with text message
Date: Mon, 15 Jul 2013 18:16:43
Message-Id: 20130715181707.GG4890@syscon7.inet
In Reply to: Re: [gentoo-user] pop up windows with text message by felix@crowfix.com
1 On 07/13/13 15:59, felix@×××××××.com wrote:
2 >On Tue, Jul 09, 2013 at 10:54:31AM -0600, Joseph wrote:
3 >> How to design a sticky note pop-up when file is present?
4 >>
5 >> I would like to check if file is present via and open a terminal window with a simple message.
6 >> I think a simple bash script and a cron job would do the trick or is there a better solution?
7 >
8 >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.
9 >
10 > #!/bin/sh
11 >
12 > if [ -z "$DISPLAY" ]; then export DISPLAY=localhost:0; fi
13 > xmopts=
14 > while [ "$1" = "-x" ]; do
15 > xmopts="$xmopts $2"
16 > shift;shift
17 > done
18 > echo "$@
19 > " | xmessage -bg green -fg red -file - -title Alert -nearmouse -default okay $xmopts
20 >
21 >--
22 > ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
23 > Felix Finch: scarecrow repairman & rocket surgeon / felix@×××××××.com
24 > GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
25 >I've found a solution to Fermat's Last Theorem but I see I've run out of room o
26 >
27
28 I came to the same conclusion, using gxmessage
29 $ ssh -t user@IP_address 'gxmessage -nearmouse -borderless --display :0.0 -entry Test message'
30
31 --
32 Joseph