From f7e254d0d073c86531457dc0f700cbde8f31e515 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 12 Dec 2016 18:27:20 +1100 Subject: [PATCH] Song: Simplify state detection --- neofetch | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index c9271f09..aee15ff2 100755 --- a/neofetch +++ b/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.