Song: Simplify state detection
This commit is contained in:
parent
c92fb13c13
commit
f7e254d0d0
1 changed files with 2 additions and 7 deletions
9
neofetch
9
neofetch
|
@ -1254,13 +1254,8 @@ get_song() {
|
|||
esac
|
||||
|
||||
case "$state" in
|
||||
"paused" | "PAUSE" | "Paused")
|
||||
song="Paused"
|
||||
;;
|
||||
|
||||
"stopped" | "STOP" | "Stopped")
|
||||
song="Stopped"
|
||||
;;
|
||||
"pau"*) song="Paused" ;;
|
||||
"sto"*) song="Stopped" ;;
|
||||
esac
|
||||
|
||||
# Display Artist and Title on seperate lines.
|
||||
|
|
Loading…
Reference in a new issue