de_version: Avoid awk
This commit is contained in:
parent
8c2ab8e443
commit
9f75eaece2
1 changed files with 3 additions and 1 deletions
4
neofetch
4
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/)*}
|
||||
|
|
Loading…
Reference in a new issue