summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-11-07 18:02:38 +0000
committerjao <jao@gnu.org>2024-11-07 18:02:38 +0000
commit8ddc2d688cd37693320e46aa3d35d72f06e5bab3 (patch)
tree2bd00b628e8d694d48f4de35df3297a6d58c010a /init.el
parentae54b20761539fdbf16689cfa6bb8b3e5b13c251 (diff)
downloadelibs-8ddc2d688cd37693320e46aa3d35d72f06e5bab3.tar.gz
elibs-8ddc2d688cd37693320e46aa3d35d72f06e5bab3.tar.bz2
random-album: orthogonal notifications
Diffstat (limited to 'init.el')
-rw-r--r--init.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/init.el b/init.el
index c54220c..e3c56f9 100644
--- a/init.el
+++ b/init.el
@@ -2967,9 +2967,13 @@
(interactive)
(jao-mpc-show-playlist jao-mopidy-port))
-(use-package jao-random-album :demand t)
-
-(jao-def-exec-in-term "aptitude" "aptitude" (jao-afio-goto-scratch))
+(use-package jao-random-album
+ :demand t
+ :config
+ (defun jao--notify-album (album)
+ (jao-notify album "Next album" jao-notify-audio-icon)
+ (jao-minibuffer-refresh))
+ (setq jao-random-album-notify #'jao--notify-album))
(defun jao-toggle-pasystray-applet ()
(interactive)
@@ -3257,6 +3261,7 @@
(outline-show-entry))
((derived-mode-p 'org-mode) (org-reveal))))
+(jao-def-exec-in-term "aptitude" "aptitude" (jao-afio-goto-scratch))
(jao-def-exec-in-term "htop" "htop" (jao-afio-goto-scratch))
(transient-define-prefix jao-transient-utils ()