summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-12-13 03:13:44 +0000
committerjao <jao@gnu.org>2021-12-13 03:13:44 +0000
commit79a4f5313188476eb3ff601d85e6b1c24460be35 (patch)
treef796396c7c10f13929648247e7988cdfcef5c743
parent96ea525c9a3ed6472055b69fa5aaa0ee7be87005 (diff)
downloadelibs-79a4f5313188476eb3ff601d85e6b1c24460be35.tar.gz
elibs-79a4f5313188476eb3ff601d85e6b1c24460be35.tar.bz2
mopidy via mpris
-rw-r--r--init.org13
1 files changed, 8 insertions, 5 deletions
diff --git a/init.org b/init.org
index b7cb1ec..7fa443a 100644
--- a/init.org
+++ b/init.org
@@ -2904,7 +2904,7 @@
(use-package espotify
:demand t
- :init (setq espotify-service-name "spotifyd"))
+ :init (setq espotify-service-name "mopidy"))
(use-package consult-spotify :demand t)
(defalias 'jao-spotify-album #'consult-spotify-album)
(defalias 'jao-spotify-track #'consult-spotify-track)
@@ -2921,7 +2921,7 @@
(defalias 'jao-spotify-current #'jao-mpris-show-osd)))
(jao-mpris-setup-aliases)
- (jao-mpris-register "spotifyd" nil (if jao-modeline-in-minibuffer-p -10 70))
+ (jao-mpris-register "mopidy" :system (if jao-modeline-in-minibuffer-p -10 70))
#+end_src
*** mpc
@@ -2988,11 +2988,14 @@
(interactive)
(jao-mpc-echo-current jao-mopidy-port))
- (defalias 'jao-spotify-playlist #'jao-exwm-spt)
+ (defun jao-spotify-show-playlist ()
+ (interactive)
+ (jao-mpc-show-playlist jao-mopidy-port))
(defun jao-player-seek-m10 ()
(interactive)
(jao-player-seek 10 jao-mopidy-port))
+
(defun jao-player-seek-m-10 ()
(interactive)
(jao-player-seek -10 jao-mopidy-port))
@@ -3016,8 +3019,8 @@
("f" "seek fwd" jao-player-seek-m10 :transient t)
("F" "seek bwd" jao-player-seek-m-10 :transient t)]
["Browse"
- ("l" "playing list" jao-spotify-show-playlist)
- ;; ("c" "clear list"jao-spotify-clear :transient t)
+ ("l" "playing list" jao-exwm-ncmpcpp)
+ ("T" "show times" jao-mpris-status-times)
("w" "currently playing" jao-spotify-current)]])
(transient-define-prefix jao-transient-media ()