From 9b53883ad813416fe93ce18b10bb035ead8e56a0 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 28 Aug 2019 10:36:14 +0200 Subject: [PATCH] control spotifyd a bit from the command line --- local/bin/spoticly | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 local/bin/spoticly diff --git a/local/bin/spoticly b/local/bin/spoticly new file mode 100755 index 0000000..e444e6c --- /dev/null +++ b/local/bin/spoticly @@ -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"