diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-19 10:19:34 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-19 10:19:34 +0200 |
| commit | 0c54892115b7d3458455d64819a475fdd7ef7651 (patch) | |
| tree | 7427171ac881629801ccd793faed10519dcc8bae /widgets | |
| parent | d975c14645554cfbe9ba1d8c9279f51bd8407673 (diff) | |
| download | conky-theme-udt-master.tar.gz conky-theme-udt-master.zip | |
The Slackware card's big value gave no hint it was the slackpkg ChangeLog
age. Add a small line under the title naming it.
The calendar's weekday initials were English. Use the Italian single-letter
form, matching the card's already-Italian breaktimer labels.
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/calendar.lua | 2 | ||||
| -rw-r--r-- | widgets/slackware.lua | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/widgets/calendar.lua b/widgets/calendar.lua index da173c9..11dcb63 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -29,7 +29,7 @@ local COLOUR_ROLE = { ['brown'] = 'warning', } -local WEEKDAYS = { 'M', 'T', 'W', 'T', 'F', 'S', 'S' } +local WEEKDAYS = { 'L', 'M', 'M', 'G', 'V', 'S', 'D' } local M = {} diff --git a/widgets/slackware.lua b/widgets/slackware.lua index 9686f8a..1971ca1 100644 --- a/widgets/slackware.lua +++ b/widgets/slackware.lua @@ -16,6 +16,8 @@ local CACHE = (os.getenv('XDG_CACHE_HOME') or (os.getenv('HOME') .. '/.cache')) -- into the board's three-state language rather than adding a fourth convention. local WARN_H, CRIT_H = 24, 168 +local SUBTITLE = 'last slackpkg update' + local M = {} -- An age in seconds as a short string: hours below two days, then days. Short @@ -33,7 +35,7 @@ end function M.draw(cr, rect, colors) local inner = card.card(cr, rect, colors) local function clamp(v, lo, hi) return math.max(lo, math.min(hi, v)) end - local LABEL_F, BIG_F, ROW_F = 0.30, 1.0, 0.32 + local LABEL_F, BIG_F, ROW_F, SUB_F = 0.30, 1.0, 0.32, 0.26 local kv = data.kv_parse(data.slurp(CACHE) or '') @@ -76,6 +78,7 @@ function M.draw(cr, rect, colors) local groups = { { { card.title_str(card.ICON.slackware, 'SLACKWARE'), card.FONT_MONO, LABEL_F }, { age_txt, card.FONT_HEAVY, BIG_F } }, + { { SUBTITLE, card.FONT_UI, SUB_F } }, } for _, r in ipairs(rows) do groups[#groups + 1] = { { r[1], card.FONT_MONO, ROW_F }, @@ -94,6 +97,10 @@ function M.draw(cr, rect, colors) card.title(cr, inner.x, inner.y + label_size, card.ICON.slackware, 'SLACKWARE', colors) + card.font(cr, card.FONT_UI, S * SUB_F, false) + card.rgba(cr, colors.label, 0.65) + card.text(cr, inner.x, inner.y + label_size + S * SUB_F * 1.5, SUBTITLE) + local ey = inner.y + S * BIG_F + row_size * 1.6 local step = row_size * 2.0 card.font(cr, card.FONT_MONO, row_size, false) |
