diff --git a/neofetch b/neofetch index eeb70f23..95026c6c 100755 --- a/neofetch +++ b/neofetch @@ -4194,10 +4194,17 @@ term_padding() { case "$term" in urxvt*|"rxvt-unicode") - [[ -z "$xrdb" ]] && xrdb="$(xrdb -query)" - [[ $xrdb != *.internalBorder:* ]] && return + [[ -z "$xrdb" ]] && + xrdb="$(xrdb -query)" + + [[ $xrdb != *".internalBorder:"* ]] && + return + padding="${xrdb/*.internalBorder:}" - ((padding=${padding/$'\n'*})) + padding="${padding/$'\n'*}" + + [[ $padding =~ ^[0-9]+$ ]] || + padding= ;; esac }