Commit 2b44c993 authored by Herdiansyah's avatar Herdiansyah Committed by GitHub

Merge pull request #776 from mstraube/general

General: Remove another awk call
parents cb2ebbf6 7a904869
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment