aboutsummaryrefslogtreecommitdiffstats
path: root/modules/custom/presentation.jsonc
AgeCommit message (Collapse)AuthorFilesLines
2026-09-21feat(presentation): draw a running game as its own stateDanilo M.1-0/+6
The module emits a third class, gaming, when the shell's game detector holds presentation on. It gets its own icon rather than sharing the presentation one: the click is inert in that state, so the pill has to say why the mode is on and that clicking will not turn it off. The icon joins wb-icon's selftest, which is what makes an icon theme missing it fail at install time instead of rendering an empty pill. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17fix(presentation): read a missing state file as off, not a warningDanilo M.1-7/+7
statusctl no longer emits a down class, so the CSS rule for it and the dialog-warning entry in the icon check are dead. A missing file is the normal pre-write state, not a failure.
2026-09-15feat: split the bar in two on DP-3Danilo M.1-0/+28
DP-3 is rotated, so a bar there is 1080px wide rather than 1920, and one bar holding every module was too crowded. Status sits on top now, the desktop itself along the bottom: workspaces on the left, open windows on the right. Both bars are one waybar process reading one stylesheet, because waybar takes a top-level array of bars, so the two cannot drift apart. Presentation mode is the statusctl-backed module the DP-1 bar already runs, rather than the wb-idle module written for this bar. It talks to files under XDG_RUNTIME_DIR instead of to quickshell, so it keeps working while the shell is down, and it already emits a state class, so the glyphs are simply dropped and the icon chosen in CSS. wb-idle and its module are gone. The module needs a format of one space. It defaults to "{text}", statusctl emits an empty text, and waybar draws no widget at all for a custom module whose formatted output is empty: not an empty pill, no pill. That is the same trap the launcher hit, and it cost a wrong diagnosis on the way: a min-height was added first on the theory that the pill was collapsing, which was treating a symptom of a widget that did not exist. A forced red background proved it was never drawn at all. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>