emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] pop-up flashing box using org-timer?


From: Nick Dokos
Subject: Re: [O] pop-up flashing box using org-timer?
Date: Wed, 09 Dec 2015 11:20:28 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Sharon Kimble <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]