diff --git a/scripts/fetch b/scripts/fetch index 5bd641f..0325851 100755 --- a/scripts/fetch +++ b/scripts/fetch @@ -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)