From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 577901381F3 for ; Sat, 13 Jul 2013 22:59:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1242BE0B52; Sat, 13 Jul 2013 22:59:25 +0000 (UTC) Received: from crowfix.com (li35-165.members.linode.com [72.14.176.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5E4AE0B40 for ; Sat, 13 Jul 2013 22:59:23 +0000 (UTC) Received: (qmail 6277 invoked from network); 13 Jul 2013 22:59:19 -0000 Received: from unknown (HELO df.crowfix.com) (10.130.13.2) by 10.130.13.1 with SMTP; 13 Jul 2013 22:59:19 -0000 Received: (qmail 11580 invoked by uid 1000); 13 Jul 2013 22:59:06 -0000 Date: Sat, 13 Jul 2013 15:59:06 -0700 From: felix@crowfix.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] pop up windows with text message Message-ID: <20130713225906.GQ14168@crowfix.com> References: <20130709165430.GC24522@syscon7.inet> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130709165430.GC24522@syscon7.inet> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: e0ad9237-7d8c-45ea-91fd-c3667e301573 X-Archives-Hash: accd002a1615bc0617ae0ae71e0c04d1 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 / felix@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