From 3267ff9ae4c8628e46030c61d717b153262d92df Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 24 Sep 2019 16:59:37 +0200 Subject: [PATCH] scripts/fetch: change gpu detection --- scripts/fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)