From 61a959069304f3d30480bd76370dbcd62f0506ec Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Fri, 14 Jul 2017 14:45:19 +0200 Subject: [PATCH] General: Get rid of a call to awk --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index ee65e4c2..8fcd8710 100755 --- a/neofetch +++ b/neofetch @@ -662,7 +662,8 @@ get_wm() { ((wm_run == 1)) && return if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then - id="$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')" + id="$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)" + id="${id##* }" wm="$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t)" wm="${wm/*_NET_WM_NAME = }" wm="${wm/\"}"