[PR] dylanaraps/neofetch#2019 from MichaelStraube - Show Frameworks and Qt version for Plasma. Closes #2013

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2019
Thanks to @MichaelStraube

Co-authored-by: Michael Straube <michael.straubej@gmail.com>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-31 16:17:19 -04:00
commit 87e920c3de

View file

@ -1899,7 +1899,16 @@ get_de() {
if [[ $de_version == on && $de ]]; then
case $de in
Plasma*) de_ver=$(plasmashell --version) ;;
Plasma*)
de_ver=$(plasmashell --version)
kf_ver=$(kf5-config --version)
qt_ver=${kf_ver/KDE*}
qt_ver=${qt_ver/Qt:}
qt_ver=$(trim $qt_ver)
kf_ver=${kf_ver/kf5*}
kf_ver=${kf_ver/*:}
kf_ver=$(trim $kf_ver)
;;
MATE*) de_ver=$(mate-session --version) ;;
Xfce*) de_ver=$(xfce4-session --version) ;;
GNOME*) de_ver=$(gnome-shell --version) ;;
@ -1922,6 +1931,8 @@ get_de() {
de_ver=${de_ver//\"}
de+=" $de_ver"
[[ $de == "Plasma"* ]] && de+=" [KF5 $kf_ver] [Qt $qt_ver]"
fi
# TODO: