statusbar-scripts/sb-song-status
2023-08-23 19:45:38 +02:00

11 lines
200 B
Bash
Executable File

#!/bin/sh
status=$(mpc status | sed -n '/playing/p' | cut -c2-8 | sed 's/^[ \t]*//')
if [ "$status" = "playing" ]; then # If song is playing
printf "%s\n" "契"
else
printf "%s\n" ""
fi