fix neofetch

This commit is contained in:
2026-03-22 18:48:22 +01:00
parent 36549fa5cb
commit 2443f1c64e

View File

@@ -316,7 +316,6 @@ get_de() {
esac
}
get_wm() {
F_WM=""
@@ -324,7 +323,7 @@ get_wm() {
if type xprop >/dev/null 2>&1; then
wid="$(xprop -root _NET_SUPPORTING_WM_CHECK 2>/dev/null | awk '{print $NF}')"
if [ -n "$wid" ]; then
F_WM="$(xprop -id "$wid" _NET_WM_NAME 2>/dev/null | sed 's/.*= //' | sed 's/^"//' | sed 's/"$//')"
F_WM="$(xprop -id "$wid" -f _NET_WM_NAME 8t _NET_WM_NAME 2>/dev/null | sed 's/.*= //' | sed 's/^"//' | sed 's/"$//')"
fi
fi