DE: Fix match
This commit is contained in:
parent
5e3a3997e2
commit
9b7e84a553
4
neofetch
4
neofetch
|
@ -558,7 +558,7 @@ get_de() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If DE == WM unset DE.
|
# If DE == WM unset DE.
|
||||||
[[ "$de" == "$wm" ]] && unset -v de
|
[[ "$de" =~ $wm ]] && unset -v de
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -582,6 +582,8 @@ get_de() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_wm() {
|
get_wm() {
|
||||||
|
(( "$wm_run" == 1 )) && return
|
||||||
|
|
||||||
if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then
|
||||||
id="$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')"
|
id="$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')"
|
||||||
wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t)"
|
wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t)"
|
||||||
|
|
Reference in New Issue