mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Image: Possibly fix xterm 1/0 error.
This commit is contained in:
2
neofetch
2
neofetch
@@ -2404,7 +2404,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" ]]; then
|
if [[ -z "$term_width" ]] || (( "$term_width" < 50 )); 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")
|
||||||
|
Reference in New Issue
Block a user