summaryrefslogtreecommitdiffhomepage
path: root/sys/jao-notify.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-01-11 01:14:36 +0000
committerjao <jao@gnu.org>2021-01-11 01:15:18 +0000
commitc9218804220c496d0c841eecaa0c8b6a92146880 (patch)
tree0758a7bd602fbb0ea0c1452cdb8b07759c70d4e0 /sys/jao-notify.el
parent3f173fedb948091cfc265ec0cdce6746cfaac034 (diff)
downloadelibs-c9218804220c496d0c841eecaa0c8b6a92146880.tar.gz
elibs-c9218804220c496d0c841eecaa0c8b6a92146880.tar.bz2
more consult functions, new jao-embark, eos
Diffstat (limited to 'sys/jao-notify.el')
-rw-r--r--sys/jao-notify.el33
1 files changed, 0 insertions, 33 deletions
diff --git a/sys/jao-notify.el b/sys/jao-notify.el
deleted file mode 100644
index dc48ca4..0000000
--- a/sys/jao-notify.el
+++ /dev/null
@@ -1,33 +0,0 @@
-;; jao-notify.el -- Interacting with notification daemon
-
-;; Copyright (c) 2017, 2019, 2020 Jose Antonio Ortega Ruiz
-
-;; Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
-;; Start date: Sun Jan 08, 2017 20:24
-
-
-;;; Comentary:
-
-;; Simple notifications using echo or dbus notifications
-
-;;; Code:
-
-(defvar jao-notify-use-messages-p nil)
-(defvar jao-notify-timeout 5000)
-
-(declare-function notifications-notify "notifications")
-
-(defun jao-notify (msg &optional title icon)
- (if jao-notify-use-messages-p
- (message "%s%s%s" (or title "") (if title ": " "") (or msg ""))
- (let* ((args `(:timeout ,jao-notify-timeout))
- (args (append args
- (if title `(:title ,title :body ,msg) `(:title ,msg))))
- (args (if (and (stringp icon) (file-exists-p icon))
- (append args `(:app-icon ,(format "%s" icon)))
- args)))
- (apply 'notifications-notify args))))
-
-
-(provide 'jao-notify)
-;;; jao-notify.el ends here