Created
October 15, 2020 09:11
-
-
Save emachado/691e1c01a88dd9a16356468efcac5a9f to your computer and use it in GitHub Desktop.
controlling spotify via dbus-send
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# listing names | |
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause | |
#(...) | |
# string "org.mpris.MediaPlayer2.spotify" | |
#(...) | |
# controlling play/pause, next and previous | |
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause | |
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next | |
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment