From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: pop-up flashing box using org-timer? Date: Wed, 09 Dec 2015 11:20:28 -0500 Message-ID: <87poyflhkj.fsf@alphaville.usersys.redhat.com> References: <878u53px15.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6hTv-0002x7-Lh for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 11:20:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6hTq-0004WN-HU for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 11:20:43 -0500 Received: from plane.gmane.org ([80.91.229.3]:52272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6hTq-0004WJ-2t for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 11:20:38 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a6hTo-00030w-LT for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 17:20:36 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Dec 2015 17:20:36 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Dec 2015 17:20:36 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sharon Kimble 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