Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions alert.el
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
;; toaster - Use the toast notification system
;; x11 - Changes the urgency property of the window in the X Window System
;; termux - Use termux-notification from the Termux API
;; stumpish - Use STUMPwm Interactive SHell (stumpish) to call notifications-add
;;
;; * Defining new styles
;;
Expand Down Expand Up @@ -1011,6 +1012,19 @@ INFO plist."
(alert-define-style 'termux :title "Notify using termux"
:notifier #'alert-termux-notify)

(defcustom alert-stumpish-command (executable-find "stumpish")
"Path to the stumpish command."
:type 'file
:group 'alert)

(defun alert-stumpish-notify (info)
(apply #'call-process alert-stumpish-command nil nil nil
(list "notifications-add"
(alert-encode-string (plist-get info :message))))
(alert-message-notify info))

(alert-define-style 'stumpish :title "Use STUMPwm Interactive SHell (stumpish) to call notifications-add" :notifier #'alert-stumpish-notify)

;; jww (2011-08-25): Not quite working yet
;;(alert-define-style 'frame :title "Popup buffer in a frame"
;; :notifier #'alert-frame-notify
Expand Down