Base DE detection

This commit is contained in:
Dylan 2016-04-02 01:51:32 +11:00
parent 12ea7591dc
commit 8937f07daa

View file

@ -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
}
# }}}