Charles Philip Chan <cpc...@bell.net> writes: > Amit Tendulkar <amit_tendul...@persistent.com> 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="/home/hoor/GNUstep/Library/WindowMaker/Sounds/Kopete_Received.ogg" > ICON="/home/hoor/GNUstep/Library/Icons/apps/system-config-date.tif" > > ogg123 "$SOUND" > notify-send --icon="$ICON" "APPOINTMENT" "$1\ndue in $2 mins." > > > Charles
Thanks Charles. The above is indeed very helpful. I replaced the notify-send command with the below one as the notification popup wasn't visible to me when I was connected to Citrix desktop. Whereas the below command worked. zenity --info --text="$1 due in $2 minutes" --title "APPOINTMENT" --timeout 60 Regards, Amit