From b6f0460b3581ec7a259c70d2875c4201ab46ebf2 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 9 May 2018 21:23:10 +1000 Subject: [PATCH] song: Better splitting. --- neofetch | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 0189a1a0..29cbab24 100755 --- a/neofetch +++ b/neofetch @@ -2490,10 +2490,7 @@ get_song() { # Display Artist, Album and Title on separate lines. if [[ "$song_shorthand" == "on" && "$song" ]]; then - artist="${song/ ‡*}" - album="${song#*‡ }" - album="${album% ‡*}" - song="${song/*‡}" + LC_ALL="$sys_locale" IFS="‡" read -r artist album song <<< "$song" [[ "$(trim "$artist")" ]] && prin "Artist" "$artist" [[ "$(trim "$album")" ]] && prin "Album" "$album"