Removal of special cases for FreeMiNT color settings. Added blocking of X11 queries on FreeMiNT.
This commit is contained in:
parent
29714e1875
commit
bb8831831e
11
neofetch
11
neofetch
|
@ -2828,6 +2828,10 @@ get_resolution() {
|
||||||
[[ "$refresh_rate" == "off" ]] && resolution="${resolution/ @*}"
|
[[ "$refresh_rate" == "off" ]] && resolution="${resolution/ @*}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"FreeMiNT")
|
||||||
|
# Need to block X11 queries
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
if type -p xrandr >/dev/null && [[ $DISPLAY && -z $WAYLAND_DISPLAY ]]; then
|
if type -p xrandr >/dev/null && [[ $DISPLAY && -z $WAYLAND_DISPLAY ]]; then
|
||||||
case $refresh_rate in
|
case $refresh_rate in
|
||||||
|
@ -3712,10 +3716,6 @@ get_cols() {
|
||||||
|
|
||||||
unset -v blocks blocks2 cols
|
unset -v blocks blocks2 cols
|
||||||
|
|
||||||
# TosWin2 on FreeMiNT is terrible at this,
|
|
||||||
# so we'll reset colors arbitrarily.
|
|
||||||
[[ "$term" == "TosWin2" ]] && printf '\e[30;47m'
|
|
||||||
|
|
||||||
# Tell info() that we printed manually.
|
# Tell info() that we printed manually.
|
||||||
prin=1
|
prin=1
|
||||||
}
|
}
|
||||||
|
@ -6766,8 +6766,7 @@ EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"FreeMiNT"*)
|
"FreeMiNT"*)
|
||||||
# Don't explicitly set colors since
|
set_colors 7
|
||||||
# TosWin2 doesn't reset well.
|
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
${c1} ##
|
${c1} ##
|
||||||
## #########
|
## #########
|
||||||
|
|
Reference in New Issue