Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Improve glxinfo call, OpenBSD sensors fix #1494

Merged
merged 2 commits into from
Oct 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -2168,8 +2168,7 @@ get_cpu() {
;;
"OpenBSD"* | "Bitrig"*)
deg="$(sysctl hw.sensors | \
awk -F '=| degC' '/lm0.temp|cpu0.temp/ {print $2; exit}')"
deg="${deg/00/0}"
awk -F'=|degC' '/(ksmn|adt|lm|cpu)0.temp0/ {printf("%2.1f", $2); exit}')"
;;
esac
;;
Expand Down Expand Up @@ -2492,7 +2491,7 @@ get_gpu() {
;;

*)
gpu="$(glxinfo | grep -F 'OpenGL renderer string')"
gpu="$(glxinfo -B | grep -F 'OpenGL renderer string')"
gpu="${gpu/OpenGL renderer string: }"
;;
esac
Expand Down