neofetch: Fix window size issue in gnome terminal

This commit is contained in:
Dylan Araps
2020-02-01 16:25:14 +02:00
parent c2a3cda1da
commit 388ba9c0a2

View File

@@ -3975,14 +3975,14 @@ get_window_size() {
if type -p xdo &>/dev/null; then
current_window="$(xdo id)"
elif type -p xprop &>/dev/null; then
current_window="$(xprop -root _NET_ACTIVE_WINDOW)"
current_window="${current_window##* }"
elif type -p xdpyinfo &>/dev/null; then
current_window="$(xdpyinfo | grep -F "focus:")"
current_window="${current_window/*window }"
current_window="${current_window/,*}"
elif type -p xprop &>/dev/null; then
current_window="$(xprop -root _NET_ACTIVE_WINDOW)"
current_window="${current_window##* }"
fi
# If the ID was found get the window size.