Merge pull request #776 from mstraube/general

General: Remove another awk call
This commit is contained in:
Herdiansyah 2017-07-15 00:15:34 +07:00 committed by GitHub
commit 2b44c993bb
1 changed files with 2 additions and 1 deletions

View File

@ -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.