Openbox detection, Add support for LXDE

This commit is contained in:
Dylan 2016-04-01 18:12:43 +11:00
parent 4184c17507
commit 45e632e2bc

View file

@ -860,8 +860,14 @@ getwmtheme () {
;;
'Openbox')
[ -f "${HOME}/.config/openbox/rc.xml" ] && \
wmtheme="$(awk -F "[<,>]" '/<theme/ {getline; print $3}' "$XDG_CONFIG_HOME/openbox/rc.xml")";
if [ "$de" == "LXDE" ] && [ -f "${HOME}/.config/openbox/lxde-rc.xml" ]; then
ob_file="lxde-rc"
elif [ -f "${HOME}/.config/openbox/rc.xml" ]; then
ob_file="rc"
fi
wmtheme="$(awk -F "[<,>]" '/<theme/ {getline; print $3}' "$XDG_CONFIG_HOME/openbox/${ob_file}.xml")";
;;
'PekWM')