From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Philip Chan Subject: Re: org-notify: Need to get notifications at the start time of the task (in addition to the deadline) Date: Wed, 08 Jun 2016 20:35:35 -0400 Message-ID: <87d1nr42sp.fsf@bell.net> References: <871t4bq1l6.fsf@persistent.com> <841t4boj06.fsf@gmail.com> <84inxlsf88.fsf@gmail.com> <87h9d5cvh3.fsf@bell.net> <874m94mohv.fsf@persistent.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAnx0-0001dC-4F for emacs-orgmode@gnu.org; Wed, 08 Jun 2016 20:35:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAnww-0001nZ-V8 for emacs-orgmode@gnu.org; Wed, 08 Jun 2016 20:35:58 -0400 Received: from mail-qg0-x242.google.com ([2607:f8b0:400d:c04::242]:34242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAnww-0001nT-Ph for emacs-orgmode@gnu.org; Wed, 08 Jun 2016 20:35:54 -0400 Received: by mail-qg0-x242.google.com with SMTP id z67so1837393qgz.1 for ; Wed, 08 Jun 2016 17:35:54 -0700 (PDT) Received: from karnak.MagnumOpus.khem (TOROON017DW-LP140-04-845489287.dsl.bell.ca. [50.101.36.135]) by smtp.gmail.com with ESMTPSA id h92sm1023454qgd.22.2016.06.08.17.35.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jun 2016 17:35:53 -0700 (PDT) In-Reply-To: <874m94mohv.fsf@persistent.com> (Amit Tendulkar's message of "Wed, 08 Jun 2016 07:27:16 +0530") 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" To: Org-mode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Amit Tendulkar writes: Hi Amit: > I put notify.el in my load path and added the following lines in my init > file. > > (autoload 'notify "notify" "Notify TITLE, BODY.") > (appt-activate 1) > (org-agenda-to-appt) > > Still I am getting only inline intimations for the appointments. Am I > missing something? Sorry, I set this up a long time ago, so I gave you the wrong info, After searching my configuration files, I found this: ;; Update appt list and dbus appt notification ; Get appointments for today (defun my-org-agenda-to-appt () (interactive) (setq appt-time-msg-list nil) (let ((org-deadline-warning-days 0)) ;; will be automatic in org 5.23 (org-agenda-to-appt))) ; Run once, activate and schedule refresh (my-org-agenda-to-appt) (appt-activate t) (run-at-time "00:01" nil 'my-org-agenda-to-appt) ; 5 minute warnings (setq appt-message-warning-time 15) (setq appt-display-interval 5) ; Update appt each time agenda opened. (add-hook 'org-finalize-agenda-hook 'my-org-agenda-to-appt) ; Setup zenify, we tell appt to use window, and replace default function (setq appt-display-format 'window) (setq appt-disp-window-function (function my-appt-disp-window)) (defun my-appt-disp-window (min-to-app new-time msg) (save-window-excursion (shell-command (concat "/home/hoor/bin/org-appt-notify '" msg "' '" min-to-app "'&") nil nil) ) ) and here is the content of "org-appt-notify" #!/bin/sh SOUND=3D"/home/hoor/GNUstep/Library/WindowMaker/Sounds/Kopete_Received.ogg" ICON=3D"/home/hoor/GNUstep/Library/Icons/apps/system-config-date.tif" ogg123 "$SOUND" notify-send --icon=3D"$ICON" "APPOINTMENT" "$1\ndue in $2 mins." Charles =2D-=20 Your job is being a professor and researcher: That's one hell of a good exc= use for some of the brain-damages of minix. (Linus Torvalds to Andrew Tanenbaum) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAldYudgACgkQ3epPyyKbwPbkYQCgvcJM/Kvc/qWsn4Qpm+MfqWmq otsAoK8GlawVg1snmxXUwLzJUUp5B/I3 =uC41 -----END PGP SIGNATURE----- --=-=-=--