mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
DE: Fix match
This commit is contained in:
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
Block a user