summaryrefslogtreecommitdiffhomepage
path: root/lib/media/espotify.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-02-08 21:29:59 +0000
committerjao <jao@gnu.org>2021-02-08 21:30:16 +0000
commita88985711f4f838762732bde2b5b75381ca71ee2 (patch)
treee6aa86f36705d97c4d638d34c8372757b04e4a38 /lib/media/espotify.org
parent49b1f5acdd11c2e8e674c3ace69fec1fad7867e7 (diff)
downloadelibs-a88985711f4f838762732bde2b5b75381ca71ee2.tar.gz
elibs-a88985711f4f838762732bde2b5b75381ca71ee2.tar.bz2
more espotify control commands
Diffstat (limited to 'lib/media/espotify.org')
-rw-r--r--lib/media/espotify.org17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/media/espotify.org b/lib/media/espotify.org
index 93338a9..98530a8 100644
--- a/lib/media/espotify.org
+++ b/lib/media/espotify.org
@@ -271,6 +271,23 @@ Let's start with an umbrella customization group:
(espotify-call-spotify-via-dbus "OpenUri" uri))
#+end_src
+ Although we're not going to use them explicitly below, we can define
+ a couple more commands that may come in handy:
+
+ #+begin_src emacs-lisp
+ (defun espotify-play-pause ()
+ (interactive)
+ (espotify-call-spotify-via-dbus "PlayPause"))
+
+ (defun espotify-next ()
+ (interactive)
+ (espotify-call-spotify-via-dbus "Next"))
+
+ (defun espotify-previous ()
+ (interactive)
+ (espotify-call-spotify-via-dbus "Previous"))
+ #+end_src
+
* Search front-end using consult
:PROPERTIES:
:header-args: :tangle espotify-consult.el