Song: Simplify state detection
This commit is contained in:
parent
c92fb13c13
commit
f7e254d0d0
9
neofetch
9
neofetch
|
@ -1254,13 +1254,8 @@ get_song() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$state" in
|
case "$state" in
|
||||||
"paused" | "PAUSE" | "Paused")
|
"pau"*) song="Paused" ;;
|
||||||
song="Paused"
|
"sto"*) song="Stopped" ;;
|
||||||
;;
|
|
||||||
|
|
||||||
"stopped" | "STOP" | "Stopped")
|
|
||||||
song="Stopped"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Display Artist and Title on seperate lines.
|
# Display Artist and Title on seperate lines.
|
||||||
|
|
Reference in New Issue