Base DE detection
This commit is contained in:
parent
12ea7591dc
commit
8937f07daa
1 changed files with 6 additions and 0 deletions
6
neofetch
6
neofetch
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue