Skip to content

Commit

Permalink
[PR] dylanaraps/neofetch#2019 from MichaelStraube - Show Frameworks a…
Browse files Browse the repository at this point in the history
…nd Qt version for Plasma. Closes #2013

Upstream PR: dylanaraps/neofetch#2019
Thanks to @MichaelStraube

Co-authored-by: Michael Straube <michael.straubej@gmail.com>
  • Loading branch information
hykilpikonna and MichaelStraube committed Jul 31, 2022
2 parents bb75823 + b9cff7c commit 87e920c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;;
Expand All @@ -1922,6 +1931,8 @@ get_de() {
de_ver=${de_ver//\"}

de+=" $de_ver"

[[ $de == "Plasma"* ]] && de+=" [KF5 $kf_ver] [Qt $qt_ver]"
fi

# TODO:
Expand Down

0 comments on commit 87e920c

Please sign in to comment.