Including a spotify script and organizing csound

This commit is contained in:
Bruno F. Fontes 2018-11-19 19:21:01 -02:00
parent 895f356687
commit 51f9c8e282
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
2 changed files with 29 additions and 0 deletions

29
music/spotify Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-P|--play)
qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Play
shift
;;
-p|--pause)
qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause
shift
;;
*)
echo "Usage:"
echo "-P (--play) - Play"
echo "-p (--pause) - Pause"
exit 3
;;
esac
done
if [[ $# -ne $1 ]]; then
echo "Usage:"
echo "-P (--play) - Play"
echo "-p (--pause) - Pause"
fi