aboutsummaryrefslogtreecommitdiffstats
path: root/modules/custom/presentation.jsonc
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 14:39:09 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 14:39:09 +0200
commit996ad0ca8aa337051aca955a149be063396f732c (patch)
tree8e1c75ca1c9606daa008c79c6eb43da81ded7fc7 /modules/custom/presentation.jsonc
parent8fb1d0d9840a7e870d71ac902265199942fdf366 (diff)
downloadwaybar-theme-udt-996ad0ca8aa337051aca955a149be063396f732c.tar.gz
waybar-theme-udt-996ad0ca8aa337051aca955a149be063396f732c.zip
fix(presentation): read a missing state file as off, not a warning
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.
Diffstat (limited to 'modules/custom/presentation.jsonc')
-rw-r--r--modules/custom/presentation.jsonc14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/custom/presentation.jsonc b/modules/custom/presentation.jsonc
index 3843cb5..8544b26 100644
--- a/modules/custom/presentation.jsonc
+++ b/modules/custom/presentation.jsonc
@@ -1,14 +1,14 @@
// Presentation mode, the same module the DP-1 bar runs.
//
// `statusctl presentation watch` streams waybar JSON on every change: it
-// already emits an empty text and a class of activated, deactivated or down,
-// so the icon is chosen in CSS from that class and no format is needed here.
-// Dropping format-icons is the whole difference from the DP-1 copy, which
-// draws the same two states as Nerd Font glyphs.
+// already emits an empty text and a class of activated or deactivated, so the
+// icon is chosen in CSS from that class and no format is needed here. Dropping
+// format-icons is the whole difference from the DP-1 copy, which draws the
+// same two states as Nerd Font glyphs.
//
-// `down` means the state file is missing, which is not the same as off: the
-// mode cannot be read at all. It gets its own icon rather than borrowing the
-// off one, so a broken watcher does not read as a working bar.
+// A missing state file reads as deactivated, not as a warning: that is the
+// normal state before anything has written one, and a file cannot report
+// whether a watcher is alive anyway.
//
// statusctl talks to files under XDG_RUNTIME_DIR rather than to quickshell,
// so this keeps working while the shell is down.