aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 12:40:10 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 12:40:10 +0200
commit32e10b1d6962afd04a209f300ebb8ab9ee29f070 (patch)
tree9b8e711f00b4ebdb3a6652aef4ffc54a1f36b50a /widgets
parentf0638bc45a939b28fb32d46e9bbbd8fc2e8cf223 (diff)
downloadconky-theme-udt-32e10b1d6962afd04a209f300ebb8ab9ee29f070.tar.gz
conky-theme-udt-32e10b1d6962afd04a209f300ebb8ab9ee29f070.zip
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.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/gpu.lua4
1 files changed, 2 insertions, 2 deletions
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 },
}