diff --git a/old/spotify-pause b/old/spotify-pause new file mode 100755 index 0000000..3764e8a --- /dev/null +++ b/old/spotify-pause @@ -0,0 +1,7 @@ +mpd_status=$(playerctl --player=mpd status 2>/dev/null) + +if [ "$mpd_status" == "Playing" ]; then + playerctl --player=mpd pause +else + playerctl --player=mpd play 2>/dev/null || playerctl --player=spotify play +fi diff --git a/play-pause b/play-pause new file mode 100755 index 0000000..187c74f --- /dev/null +++ b/play-pause @@ -0,0 +1 @@ +mpc --host=/home/user/.config/mpd/socket toggle