From 32e10b1d6962afd04a209f300ebb8ab9ee29f070 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 17 Sep 2026 12:40:10 +0200 Subject: fix: stop the widgets from stalling or raising the draw Memoize hwmon_dir by chip name so sensor reads no longer popen grep on every frame, cache misses included. Floor fractional byte counts in card.human so it cannot raise. Drop the GPU package-temperature row, which duplicated the headline. Set umask before mkdir in both samplers so a fresh cache directory is not world-readable. Make render.lua exit non-zero on a draw error and tolerate an unset HOME. --- widgets/gpu.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/gpu.lua b/widgets/gpu.lua index 5f289a0..87e22f3 100644 --- a/widgets/gpu.lua +++ b/widgets/gpu.lua @@ -14,9 +14,9 @@ local data = require 'lib.data' local M = {} --- chip, file, label, warn, crit +-- chip, file, label, warn, crit. Package (temp2) is the headline above, so it +-- is not repeated here; these are the rows drawn under it. local TEMPS = { - { 'xe', 'temp2_input', 'PKG', 75, 85 }, { 'xe', 'temp3_input', 'VRAM', 80, 90 }, } -- cgit v1.2.3