control spotifyd a bit from the command line

This commit is contained in:
Felix Van der Jeugt 2019-08-28 10:36:14 +02:00
parent cec8531de8
commit 9b53883ad8
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 9 additions and 0 deletions

9
local/bin/spoticly Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
case "$1" in
pp) message="PlayPause" ;;
p) message="Previous" ;;
n) message="Next" ;;
esac
qdbus org.mpris.MediaPlayer2.spotifyd /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player."$message"