mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
11 lines
283 B
Plaintext
11 lines
283 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
STAT=`playerctl status 2>/dev/null`
|
||
|
if [[ $STAT == "" ]]; then
|
||
|
printf "\n"
|
||
|
elif [[ $(playerctl status 2>/dev/null) == "Playing" ]]; then
|
||
|
printf "%s\n" "Playing: $(playerctl metadata title)"
|
||
|
else
|
||
|
printf "%s\n" "Paused: $(playerctl metadata title)"
|
||
|
fi
|