From 9f75eaece23a3d41a0993755473e93a03487221c Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Mon, 9 Dec 2019 18:17:10 +0100 Subject: [PATCH] de_version: Avoid awk --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index d8049310..ab84ee06 100755 --- a/neofetch +++ b/neofetch @@ -1613,9 +1613,11 @@ get_de() { "Budgie"*) de_ver=$(budgie-desktop --version) ;; "LXQt"*) de_ver=$(lxqt-session --version) ;; "Lumina"*) de_ver=$(lumina-desktop --version 2>&1) ;; - "Trinity"*) de_ver=$(tde-config --version | awk '/TDE:/ {print $2}') ;; + "Trinity"*) de_ver=$(tde-config --version) ;; # TODO: Add other DEs esac + de_ver=${de_ver/*TDE:} + de_ver=${de_ver/tde-config*} de_ver=${de_ver/liblxqt*} de_ver=${de_ver/Copyright*} de_ver=${de_ver/)*}