Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 87e920c

Browse files
hykilpikonnaMichaelStraube
andcommittedJul 31, 2022
[PR] dylanaraps/neofetch#2019 from MichaelStraube - Show Frameworks and Qt version for Plasma. Closes #2013
Upstream PR: dylanaraps/neofetch#2019 Thanks to @MichaelStraube Co-authored-by: Michael Straube <michael.straubej@gmail.com>
2 parents bb75823 + b9cff7c commit 87e920c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
 

‎neofetch

+12-1
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,16 @@ get_de() {
18991899

19001900
if [[ $de_version == on && $de ]]; then
19011901
case $de in
1902-
Plasma*) de_ver=$(plasmashell --version) ;;
1902+
Plasma*)
1903+
de_ver=$(plasmashell --version)
1904+
kf_ver=$(kf5-config --version)
1905+
qt_ver=${kf_ver/KDE*}
1906+
qt_ver=${qt_ver/Qt:}
1907+
qt_ver=$(trim $qt_ver)
1908+
kf_ver=${kf_ver/kf5*}
1909+
kf_ver=${kf_ver/*:}
1910+
kf_ver=$(trim $kf_ver)
1911+
;;
19031912
MATE*) de_ver=$(mate-session --version) ;;
19041913
Xfce*) de_ver=$(xfce4-session --version) ;;
19051914
GNOME*) de_ver=$(gnome-shell --version) ;;
@@ -1922,6 +1931,8 @@ get_de() {
19221931
de_ver=${de_ver//\"}
19231932

19241933
de+=" $de_ver"
1934+
1935+
[[ $de == "Plasma"* ]] && de+=" [KF5 $kf_ver] [Qt $qt_ver]"
19251936
fi
19261937

19271938
# TODO:

0 commit comments

Comments
 (0)
Please sign in to comment.