aboutsummaryrefslogtreecommitdiffstats
path: root/lib/card.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-18 10:40:18 +0200
committerDanilo M. <danix@danix.xyz>2026-10-18 10:40:18 +0200
commite54d9405dd818cd3ee7c203b8ec1d21713470904 (patch)
tree5b7afeff3bcec5c79c9aee4c9a1d09bc610fe3eb /lib/card.lua
parent7f14e983c2ed73f69dbdd7bb155203a0762b814a (diff)
downloadconky-theme-udt-e54d9405dd818cd3ee7c203b8ec1d21713470904.tar.gz
conky-theme-udt-e54d9405dd818cd3ee7c203b8ec1d21713470904.zip
feat: the cache and slackware cards move to quickshell
Both cards are now drawn by quickshell, so the conky copies go: the two widgets, their samplers and texeci lines, their fixtures and icons, and du_parse with human_bytes, which only the cache card used. kv_parse stays for breaktimer; its test now runs on an inline string. README gains a Samplers section listing what conky still schedules, and DESIGN.md's examples point at the cards that remain. Their slots in the layout are left open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/card.lua')
-rw-r--r--lib/card.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/card.lua b/lib/card.lua
index 0a93c88..0869ce9 100644
--- a/lib/card.lua
+++ b/lib/card.lua
@@ -215,8 +215,6 @@ end
-- fontconfig alone: a missing glyph draws as an invisible blank and a wrong
-- codepoint as a plausible neighbour, so neither fails visibly.
M.ICON = {
- cache = '\u{F0ABA}', -- folder-clock
- slackware = '\u{F318}', -- linux-slackware
breaktimer = '\u{F13AB}', -- timer
calendar = '\u{F0E17}', -- calendar-month
immich = '\u{F02F9}', -- image-multiple
@@ -315,7 +313,7 @@ end
--
-- This counts codepoints, not rendered width, so it does not account for a
-- double-width CJK glyph. That is the right trade here: the strings it cuts
--- are cache directory names and hardware model strings. Measure with
+-- are calendar titles and place names. Measure with
-- M.measure when true rendered width matters.
function M.truncate(s, limit)
s = tostring(s or '')