From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7855 invoked by alias); 20 Sep 2012 09:10:40 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17282 Received: (qmail 4935 invoked from network); 20 Sep 2012 09:10:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_05,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL,UNPARSEABLE_RELAY autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.co.uk does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1348131850; bh=VckouvQBXClqXmh8Nt8TW2bzEuWq/t/whsehBwj2JLI=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=uHci1QVLzDn3LjfgMGB+ZtzecUOL6xusCLZC40QyJQoJByyXBsBXSf90hWLrk0N/jA2BwacjFsuBAx9tFFZzmJnLBbJyE9C2molpSIG6aTQPp0HjHROfw0JSYeRArcq1UR9RVNn3JvmTWFxS3dCp48HVWobAzNrm0DW9nh5IDVE= X-Yahoo-Newman-Id: 113478.99975.bm@smtp119.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: BIY_OBcVM1nYgqNUD9.8XiIYv1Af01v4UnHdVWJk4sg_gsT aVB.XgxFpI3QIuGZCCs.TWYn4UYyvIssjDrPMdDsj.fU7R.3z0yOTwi5AAUn y1AtQepBlL_zklBPKQ.DGwZYmcJ3i825lfmW9B.j8IIFATnK535fsZtNehdY 16Uwo2XljrpYJY9gZXm3Iv1FqD10SZb7ZwM58My5AJSsRjo91g7OGR6_HJLJ SmDXbyq4AWQHNlRzGT5BZ1z05lBHdN5By943oI52TQPE2MkRMRqvMIyGRbe9 PqvumspGu9AaMi7yMB.NW2EmzQ.pfZdruIzQ3nl8tD5RL0fAvZOkTCaH7twA T7hJLxcqWuwMqC7MJO43vJgg68UB0eALFYiuxPdBg50nnaj.bN9LcmLY0IbN _gN_1cK3V9IUF9.9Dsgy1p1lIOn7L64JTg0bTAe5O.yDwQvBQq5Ymm5V7X8E Lw0cnPNEl0J4F0m_cM_UvHrZ4rL25Xms_JE9jPVM7 X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <671E3B65-DB7D-4C76-B617-18A7EAB28CB9@ucsc.edu> From: Oliver Kiddle References: <61BB4B35-A02F-44F8-B793-A7F90543D25F@ucsc.edu> <120804161046.ZM14799@torch.brasslantern.com> <671E3B65-DB7D-4C76-B617-18A7EAB28CB9@ucsc.edu> To: zsh-users@zsh.org Subject: Re: command completion notification MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17935.1348131698.1@thecus.kiddle.eu> Date: Thu, 20 Sep 2012 11:04:08 +0200 Message-ID: <17946.1348131848@thecus.kiddle.eu> > On Aug 4, 2012, at 4:10 PM, Bart Schaefer wrote: > > There was a thread from last October about using growl for this same > > sort of thing. See http://www.zsh.org/mla/users/2011/msg00798.html > > and surrounding conversation. I missed this and the October thread so it is perhaps a bit late. Instead of saving and checking SECONDS, I simply check TTYIDLE from precmd(). This is more useful because you'll only get an alert for a terminal that you have left alone as opposed to one where you were interacting with a console-based program. Recentish xterm has a feature for setting the window manager urgency hint and my usual window manager (i3) handles that in a manner that isn't too irritating. Unfortunately, it is tied in with the bell so I need to use a visual bell and print a bell character \a: a beep would be irritating. I'm not familiar with growl but the main advantage of an xterm feature is that you don't have to worry about the effect of ssh to remote machines or su to different users. Still, it ends up being annoying at times. Oliver