mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08: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
|