summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)