aboutsummaryrefslogtreecommitdiffstats
path: root/styles
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-15 13:01:40 +0200
committerDanilo M. <danix@danix.xyz>2026-09-15 13:01:40 +0200
commit1c9fc8369f639ec6a8d061c3ff0b9b17f9d25118 (patch)
tree9cd12f0520c008096e9396eca4e0234d1ba3eff0 /styles
parente996b6626c85f8cefb0f357d128091e350ee0ec0 (diff)
downloadwaybar-theme-udt-1c9fc8369f639ec6a8d061c3ff0b9b17f9d25118.tar.gz
waybar-theme-udt-1c9fc8369f639ec6a8d061c3ff0b9b17f9d25118.zip
fix: draw the launcher, and prune stale links on install
A custom module renders nothing at all when its format is empty, and the format has to be empty because the Slackware mark is an icon rather than text, so the launcher pill never appeared. It is an image module now, which takes a path and needs no label: the same reason the language flag is one. install.sh only ever added links, so the module file this replaces left a dangling symlink behind that every later install would step over. It now prunes links whose source has gone, and a reinstall repairs itself. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'styles')
-rw-r--r--styles/modules.css12
-rw-r--r--styles/pills.css6
2 files changed, 8 insertions, 10 deletions
diff --git a/styles/modules.css b/styles/modules.css
index 647465f..ade8a88 100644
--- a/styles/modules.css
+++ b/styles/modules.css
@@ -10,19 +10,17 @@
* Launcher: the one always-coloured pill, and the desktop's identity. *
* ------------------------------------------------------------------ */
-#custom-launcher {
+/* The mark itself is the image module's own content, so this only draws the
+ * pill it sits in. */
+#image.launcher {
background: @accent;
- background-image: url("@CONFIG@/slackware.svg");
- background-repeat: no-repeat;
- background-position: center;
- background-size: 18px 18px;
- min-width: 22px;
padding: 2px 10px;
+ min-width: 22px;
}
/* The accent pill inverts on hover rather than lightening: it is already the
* brightest thing on the bar. */
-#custom-launcher:hover {
+#image.launcher:hover {
background-color: @main-bg;
}
diff --git a/styles/pills.css b/styles/pills.css
index 83e5d36..515f053 100644
--- a/styles/pills.css
+++ b/styles/pills.css
@@ -12,7 +12,7 @@
/* Every pill. Shared geometry lives here exactly once; modules.css only says
* what is different about each one. */
-#custom-launcher,
+#image.launcher,
#clock.date,
#clock.time,
#workspaces,
@@ -33,7 +33,7 @@
/* Hover. The one rule that makes the bar feel alive, and the reason every
* pill declares a transition above. */
-#custom-launcher:hover,
+#image.launcher:hover,
#clock.date:hover,
#clock.time:hover,
#custom-vmdot:hover,
@@ -54,7 +54,7 @@
*/
/* Left: launcher | date time | workspaces | vm dots */
-#custom-launcher {
+#image.launcher {
margin-left: 6px;
margin-right: 6px;
}