haiku: fix various issues
This commit is contained in:
parent
ddc96b8250
commit
0ab8a2303f
4
neofetch
4
neofetch
|
@ -1021,7 +1021,7 @@ get_distro() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Haiku")
|
"Haiku")
|
||||||
read -r name version _ <<< "$(uname -sv)"
|
read -r name version _ <<< "$(uname -s)"
|
||||||
distro="$name $version"
|
distro="$name $version"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -2653,7 +2653,7 @@ get_resolution() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Haiku")
|
"Haiku")
|
||||||
resolution="$(screenmode | awk -F ' |, ' '{printf $2 "x" $3 " @ " $6 $7}')"
|
resolution="$(screenmode | awk -F ' |, ' 'END{printf $2 "x" $3 " @ " $6 $7}')"
|
||||||
|
|
||||||
[[ "$refresh_rate" == "off" ]] && resolution="${resolution/ @*}"
|
[[ "$refresh_rate" == "off" ]] && resolution="${resolution/ @*}"
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue