summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-07 05:16:36 +0100
committerjao <jao@gnu.org>2022-09-07 05:16:36 +0100
commitce7c0c9886d07618d70fc43e9be7f44797da299e (patch)
tree196dcc4a58b051d7ad41d9545435c31eacba19de
parent526aa894681f653231707ca0313483c4a01107e8 (diff)
downloadelibs-ce7c0c9886d07618d70fc43e9be7f44797da299e.tar.gz
elibs-ce7c0c9886d07618d70fc43e9be7f44797da299e.tar.bz2
streaming alias for "toggle shuffle"
-rw-r--r--init.el22
1 files changed, 18 insertions, 4 deletions
diff --git a/init.el b/init.el
index ec3e051..7d54bc6 100644
--- a/init.el
+++ b/init.el
@@ -3096,6 +3096,21 @@
(global-set-key (kbd "<f4>") #'jao-toggle-audio-applet)
+;;;; streaming aliases
+(defalias 'jao-streaming-list #'ignore)
+(defalias 'jao-streaming-like #'ignore)
+(defalias 'jao-streaming-dislike #'ignore)
+(defalias 'jao-streaming-toggle-shuffle #'ignore)
+(defalias 'jao-streaming-lyrics #'ignore)
+(defalias 'jao-streaming-toggle #'ignore)
+(defalias 'jao-streaming-next #'ignore)
+(defalias 'jao-streaming-prev #'ignore)
+(defalias 'jao-streaming-current #'ignore)
+(defalias 'jao-streaming-seek #'ignore)
+(defalias 'jao-streaming-seek-back #'ignore)
+(defalias 'jao-streaming-volume #'ignore)
+(defalias 'jao-streaming-volume-down #'ignore)
+
;;;; mpris
(defun jao-mpris-lyrics (&optional force)
(interactive "P")
@@ -3103,9 +3118,6 @@
(use-package jao-mpris :demand t)
-(defalias 'jao-streaming-list #'ignore)
-(defalias 'jao-streaming-like #'ignore)
-(defalias 'jao-streaming-dislike #'ignore)
(defalias 'jao-streaming-lyrics #'jao-mpris-lyrics)
(defalias 'jao-streaming-toggle #'jao-mpris-play-pause)
(defalias 'jao-streaming-next #'jao-mpris-next)
@@ -3198,7 +3210,8 @@
(defalias 'jao-streaming-volume #'jao-spt-vol)
(defalias 'jao-streaming-volume-down #'jao-spt-vol-down)
(defalias 'jao-streaming-like #'jao-spt-like)
- (defalias 'jao-streaming-dislike #'jao-spt-dislike)))
+ (defalias 'jao-streaming-dislike #'jao-spt-dislike)
+ (defalias 'jao-streaming-toggle-shuffle #'jao-spt-toggle-shuffle)))
(defvar jao-spt-on nil)
(defun jao-spt-on-p () jao-spt-on)
@@ -3266,6 +3279,7 @@
["Act"
("k" "like" jao-streaming-like)
("K" "dislike" jao-streaming-dislike)
+ ("S" "toggle shuffle" jao-streaming-toggle-shuffle)
("t" "toggle player" jao-streaming-toggle-player)]])
(transient-define-prefix jao-transient-media ()