Images: Fix bug with getting terminal size
This commit is contained in:
parent
0af39a6d30
commit
199dadd537
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -2232,7 +2232,7 @@ get_term_size() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get terminal width/height if \033[14t is unsupported.
|
# Get terminal width/height if \033[14t is unsupported.
|
||||||
if [[ -z "$term_width" && "$image_backend" == "w3m" ]]; then
|
if [[ -z "$term_width" ]]; then
|
||||||
if type -p xdotool >/dev/null 2>&1; then
|
if type -p xdotool >/dev/null 2>&1; then
|
||||||
current_window="$(xdotool getactivewindow)"
|
current_window="$(xdotool getactivewindow)"
|
||||||
source <(xdotool getwindowgeometry --shell "$current_window")
|
source <(xdotool getwindowgeometry --shell "$current_window")
|
||||||
|
|
Loading…
Reference in a new issue