neofetch: Fix window size issue in gnome terminal

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