cat: 1.2.0 — click popup panel with the cat and CPU % (#103)

Clicking the bar widget now toggles an attached panel showing the same
cat glyph at panel size plus the CPU percentage, replacing the old
notification. The widget publishes its visible state (glyph, cpu,
color, pace) through the plugin's shared state store and the panel
re-renders on each update, keeping the big cat frame-synced with the
bar cat.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Robert Ward
2026-07-25 19:34:35 -04:00
committed by GitHub
co-authored by Claude Fable 5
parent 793249578c
commit 00da2cd291
4 changed files with 85 additions and 5 deletions
+12 -1
View File
@@ -1,6 +1,6 @@
id = "dotnetrob/cat"
name = "Cat"
version = "1.1.2"
version = "1.2.0"
plugin_api = 3
author = "DotNetRob"
license = "MIT"
@@ -9,6 +9,17 @@ icon = "paw"
description = "An animated running cat bar widget whose speed reflects CPU usage."
tags = ["bar", "animation", "system", "fun"]
# Popup opened by clicking the bar widget: the same cat, bigger, with the
# CPU percentage. Attached to the bar near the click; the host default
# dismiss-on-outside-click makes it behave like a transient popup.
[[panel]]
id = "panel"
entry = "cat_panel.luau"
width = 280
height = 240
placement = "attached"
open_near_click = true
[[widget]]
id = "cat"
entry = "cat.luau"