scripts/fetch: change gpu detection
This commit is contained in:
parent
45a38dce0f
commit
3267ff9ae4
@ -14,7 +14,7 @@ set cpu_model (awk '/model name/ {print $6; exit}' /proc/cpuinfo)
|
||||
set cpu_freq (awk '{printf("%.2fHz", $0/1e6)}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq)
|
||||
set cpu_temp (awk '{printf("%dK", $0/1e3+273.15)}' /sys/class/thermal/thermal_zone3/temp)
|
||||
|
||||
set gpu_model (lspci | awk -F [][] '/VGA/ {print $4}')
|
||||
set gpu_model (glxinfo | awk '/Device:/ {print $2,$3,$4,$5,$6}')
|
||||
|
||||
set mem_used (awk '/Active/ {printf("%.1f", $2/1e6); exit}' /proc/meminfo)
|
||||
set mem_tot (awk '/MemTotal/ {printf("%.1f", $2/1e6); exit}' /proc/meminfo)
|
||||
|
Loading…
Reference in New Issue
Block a user