Merge pull request #776 from mstraube/general
General: Remove another awk call
This commit is contained in:
commit
2b44c993bb
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -2402,7 +2402,8 @@ get_term_size() {
|
|||
current_window="$(xdpyinfo | grep -E -o "focus:.*0x[0-9a-f]+")"
|
||||
current_window="${current_window/*window }"
|
||||
elif type -p xprop >/dev/null 2>&1; then
|
||||
current_window="$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')"
|
||||
current_window="$(xprop -root _NET_ACTIVE_WINDOW)"
|
||||
current_window="${current_window##* }"
|
||||
fi
|
||||
|
||||
# If the ID was found get the window size.
|
||||
|
|
Loading…
Reference in a new issue