Files
bash-scripts/spotify-pause
T
2026-06-06 12:24:00 +02:00

10 lines
230 B
Bash
Executable File

#!/bin/bash
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