From 388ba9c0a273b21e032cd250661245c769bfad3a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 1 Feb 2020 16:25:14 +0200 Subject: [PATCH] neofetch: Fix window size issue in gnome terminal --- neofetch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 5528338d..3b1112c1 100755 --- a/neofetch +++ b/neofetch @@ -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.