summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.org4
-rw-r--r--lib/eos/jao-notify.el4
-rw-r--r--lib/media/jao-random-album.el2
3 files changed, 5 insertions, 5 deletions
diff --git a/init.org b/init.org
index 77fc22f..a807a9f 100644
--- a/init.org
+++ b/init.org
@@ -683,10 +683,6 @@
*** jao-notify
#+begin_src emacs-lisp
(require 'jao-notify)
- (setq jao-notify-use-messages-p t)
- ;; "/usr/share/icons/Papirus/64x64/mimetypes/audio-x-generic.svg"
- ;; "/usr/share/icons/Tango/scalable/mimetypes/audio-x-generic.svg"
- (defvar jao-notify-audio-icon (jao-data-file "music-player-icon.png"))
#+end_src
*** tracking
#+begin_src emacs-lisp
diff --git a/lib/eos/jao-notify.el b/lib/eos/jao-notify.el
index 5e7e627..a3ea474 100644
--- a/lib/eos/jao-notify.el
+++ b/lib/eos/jao-notify.el
@@ -14,9 +14,13 @@
(defvar jao-notify-use-messages-p nil)
(defvar jao-notify-timeout 5000)
+(defvar jao-notify-audio-icon (jao-data-file "music-player-icon.png"))
(declare-function notifications-notify "notifications")
+;; "/usr/share/icons/Papirus/64x64/mimetypes/audio-x-generic.svg"
+;; "/usr/share/icons/Tango/scalable/mimetypes/audio-x-generic.svg"
+
(defun jao-notify (msg &optional title icon)
(let ((title (when (and title (not (string-blank-p title))) title)))
(if jao-notify-use-messages-p
diff --git a/lib/media/jao-random-album.el b/lib/media/jao-random-album.el
index 791b241..2800115 100644
--- a/lib/media/jao-random-album.el
+++ b/lib/media/jao-random-album.el
@@ -24,7 +24,7 @@
(defvar jao-random-lines nil)
(defvar jao-random-lines-file (expand-file-name "~/.emacs.d/random-lines"))
(defvar jao-random-album-notify-p t)
-(defvar jao-random-album-notify-icon nil)
+(defvar jao-random-album-notify-icon jao-notify-audio-icon)
(defvar jao-random-album-skip-lines 2)
(defun jao-random-lines ()