mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
Openbox detection, Add support for LXDE
This commit is contained in:
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
Block a user