zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-users@zsh.org
Subject: Re: command completion notification
Date: Thu, 20 Sep 2012 11:04:08 +0200	[thread overview]
Message-ID: <17946.1348131848@thecus.kiddle.eu> (raw)
In-Reply-To: <671E3B65-DB7D-4C76-B617-18A7EAB28CB9@ucsc.edu>

> On Aug 4, 2012, at 4:10 PM, Bart Schaefer <schaefer@brasslantern.com> 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


      parent reply	other threads:[~2012-09-20  9:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-04  6:08 William G. Scott
2012-08-04 23:10 ` Bart Schaefer
2012-08-05  3:43   ` William Scott
2012-08-05 18:21     ` Bart Schaefer
2012-09-20  9:04     ` Oliver Kiddle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17946.1348131848@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).