emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: pop-up flashing box using org-timer?
Date: Wed, 09 Dec 2015 11:20:28 -0500	[thread overview]
Message-ID: <87poyflhkj.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 878u53px15.fsf@skimble.plus.com

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> I'm using org-timer via "C-c C-x ;" and setting it for 30 minutes for a
> repetitive job that I'm doing. When it ends it has a small popup which
> shows its ended but that soon disappears. Is it possible for it to show
> a flashing popup that will show even if I'm not an org-mode buffer? Like
> in the code block showing at the end?
>

The timer code uses org-notify which in turn uses org-show-notification.

The latter goes through a sequence of steps, until one succeeds:

It first checks whether org-show-notification-handler is defined and
either calls it (if a function) or executes it (if a string); so you
can define it to be something that does what you want.

If that is not defined, it checks whether notifications-notify is bound
and is a function, and calls it if so (in my case at least, it's not
defined).

It then checks whether there is an executable called notify-send on the
system and if so, it executes it (that's what happens in my case with
Fedora 22 Linux). The appt popup code you quote also uses notify-send
(assuming that X is running). BTW, I'm not sure what happens if you execute
notify-send on the console.

Finally, as a last resort and if everything else has failed, it calls
message to put the notification in the echo area.

HTH.
--
Nick

      reply	other threads:[~2015-12-09 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-09 13:32 pop-up flashing box using org-timer? Sharon Kimble
2015-12-09 16:20 ` Nick Dokos [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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87poyflhkj.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.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.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).