diff options
author | jao <jao@gnu.org> | 2022-01-31 00:22:26 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-01-31 00:22:26 +0000 |
commit | df1affa6dedfbbf9f60c278dd140372020e2c5de (patch) | |
tree | 7b002a623fc84bbd41bb607864926ee8b4dc88ea /lib | |
parent | a948928eacae3456270d6c8f2548c39d797d7a43 (diff) | |
download | elibs-df1affa6dedfbbf9f60c278dd140372020e2c5de.tar.gz elibs-df1affa6dedfbbf9f60c278dd140372020e2c5de.tar.bz2 |
mpris/streaming tweaks
Diffstat (limited to 'lib')
-rw-r--r-- | lib/media/jao-mpris.el | 6 |
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" |