From 8937f07daa2ce3193dfa94830df930718167826b Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 2 Apr 2016 01:51:32 +1100 Subject: [PATCH] Base DE detection --- neofetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neofetch b/neofetch index 20f33a65..3ffc0f1e 100755 --- a/neofetch +++ b/neofetch @@ -777,6 +777,12 @@ getde () { "Mac OS X") de="Aqua" ;; *) de="${XDG_CURRENT_DESKTOP/i3}" ;; esac + + # TODO: Add support for all DEs that have xprop values. + if [ -z "$de" ]; then + de="$(xprop -root | awk -F '= ' '/KDE_SESSION_VERSION/ {printf $2}')" + + fi } # }}}