configuration/local/bin/spoticly

10 lines
206 B
Plaintext
Raw Normal View History

#!/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"