Openbox detection, Add support for LXDE
This commit is contained in:
parent
4184c17507
commit
45e632e2bc
10
neofetch
10
neofetch
|
@ -860,8 +860,14 @@ getwmtheme () {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'Openbox')
|
'Openbox')
|
||||||
[ -f "${HOME}/.config/openbox/rc.xml" ] && \
|
if [ "$de" == "LXDE" ] && [ -f "${HOME}/.config/openbox/lxde-rc.xml" ]; then
|
||||||
wmtheme="$(awk -F "[<,>]" '/<theme/ {getline; print $3}' "$XDG_CONFIG_HOME/openbox/rc.xml")";
|
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')
|
'PekWM')
|
||||||
|
|
Reference in New Issue