configuration/local/bin/spoticly
2019-08-28 10:36:14 +02:00

10 lines
206 B
Bash
Executable File

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