diff options
-rw-r--r-- | init.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |