Commit 8937f07d authored by Dylan's avatar Dylan

Base DE detection

parent 12ea7591
...@@ -777,6 +777,12 @@ getde () { ...@@ -777,6 +777,12 @@ getde () {
"Mac OS X") de="Aqua" ;; "Mac OS X") de="Aqua" ;;
*) de="${XDG_CURRENT_DESKTOP/i3}" ;; *) de="${XDG_CURRENT_DESKTOP/i3}" ;;
esac 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
} }
# }}} # }}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment