summaryrefslogtreecommitdiffhomepage
path: root/lib/media
diff options
context:
space:
mode:
Diffstat (limited to 'lib/media')
-rw-r--r--lib/media/jao-mpris.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/media/jao-mpris.el b/lib/media/jao-mpris.el
index c9f917a..b7e9aea 100644
--- a/lib/media/jao-mpris.el
+++ b/lib/media/jao-mpris.el
@@ -28,8 +28,11 @@
(require 'jao-themes)
(require 'jao-minibuffer)
+(defvar jao-mpris-player "chromium")
+
(defun jao-mpris--playerctl (&rest args)
- (shell-command-to-string (format "playerctl %s"
+ (shell-command-to-string (format "playerctl -p %s %s"
+ jao-mpris-player
(mapconcat #'shell-quote-argument args " "))))
(defmacro jao-playerctl--def (name &rest args)
@@ -160,6 +163,7 @@
;;;###autoload
(defun jao-mpris-register (name &optional bus order)
+ (setq jao-mpris-player name)
(dbus-register-signal (or bus :session)
name
"/org/mpris/MediaPlayer2"