summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2023-09-27 00:47:01 +0100
committerjao <jao@gnu.org>2023-09-27 00:47:01 +0100
commitdc1877c6c139418997e3e3e0f735c57f3c866b08 (patch)
treee894ad24aa228d8c72d7871e2b5627620929beb8
parent8bacae65850a148b1760e4a015b1d572ae1521e6 (diff)
downloadelibs-dc1877c6c139418997e3e3e0f735c57f3c866b08.tar.gz
elibs-dc1877c6c139418997e3e3e0f735c57f3c866b08.tar.bz2
mpris by default
-rw-r--r--init.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.el b/init.el
index 66c3e7b..01ac0b3 100644
--- a/init.el
+++ b/init.el
@@ -2876,9 +2876,9 @@
(jao-def-exec-in-term "spt" "spt" (jao-afio-goto-scratch))
-(defun jao-streaming-toggle-player ()
+(defun jao-streaming-toggle-player (&optional mpris)
(interactive)
- (if jao-spt-on
+ (if (or mpris jao-spt-on)
(progn (setq jao-mpris-player "playerctld")
(require 'jao-mpris)
(jao-mpris-setup-aliases))
@@ -2887,7 +2887,7 @@
(message "%s activated "
(if (setq jao-spt-on (not jao-spt-on)) "spt" "mpris")))
-(jao-streaming-toggle-player)
+(jao-streaming-toggle-player t)
;;;; music transients
(require 'jao-lyrics)