From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adonay Felipe Nogueira Subject: Agenda notifications for timeless entries, and variable by priority Date: Tue, 28 Mar 2017 11:30:32 -0300 Message-ID: <87efxhh3sn.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1css8v-0004NI-CZ for emacs-orgmode@gnu.org; Tue, 28 Mar 2017 10:30:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1css8r-0000Pe-8o for emacs-orgmode@gnu.org; Tue, 28 Mar 2017 10:30:41 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:36462 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1css8r-0000Op-0h for emacs-orgmode@gnu.org; Tue, 28 Mar 2017 10:30:37 -0400 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: emacs-orgmode@gnu.org I'm currently using the following in my .emacs file to have notifications for Org agenda events: # Begin of file part (setq appt-delete-window-function (lambda () t)) (require 'notifications) (defun adfeno-appt-disp-window-function (min-remaining future-time diary-en= try) (when (atom min-remaining) (notifications-notify :title diary-entry :body min-remaining :category "presence" :urgency "normal") (if (string-match-p "[[:space:]]\\[#A\\][[:space:]]" diary-entry) (start-process "adfeno-appt-notification-important" nil "paplay" "/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga") (start-process "adfeno-appt-notification-normal" nil "timeout" "1" "paplay" "/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga")))) (setq appt-disp-window-function 'adfeno-appt-disp-window-function) (defun adfeno-org-agenda-to-appt () (interactive) (setq appt-time-msg-list nil) (org-agenda-to-appt)) (run-at-time "00:01" (* 24 (* 60 60)) 'adfeno-org-agenda-to-appt) ;; Ativa as notifica=C3=A7=C3=B5es de atividades marcadas. (require 'appt) (appt-activate 1) (adfeno-org-agenda-to-appt) # End of file part However, if my agenda entries have no time, but of course have a date, the notifications, noticeably for #A-priprity entries, don't evidence a longer sound alarm. And might not even be displaying a pop-up for these #A-priority events, because I never see such pop-ups when starting Emacs for the first time in a day. So my questions are: Do you know a way to have notifications that: - Vary depending on the priority of the entry. - Accept timeless entries (no hour, minute, or second). - Make sound notifications, also varying by priority. ... ? Respectfully, Adonay. --=20 - [[https://libreplanet.org/wiki/User:Adfeno]] - Palestrante e consultor sobre /software/ livre (n=C3=A3o confundir com gratis). - "WhatsApp"? Ele n=C3=A3o =C3=A9 livre, por isso n=C3=A3o uso. Iguais a el= e prefiro Ring, ou Tox. Quer outras formas de contato? Adicione o vCard que est=C3=A1 no endere=C3=A7o acima aos teus contatos. - Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu aceito, mas n=C3=A3o repasso. Entrego apenas em formatos favor=C3=A1veis = ao /software/ livre. Favor entrar em contato em caso de d=C3=BAvida. - "People said I should accept the world. Bullshit! I don't accept the world." --- Richard Stallman