aboutsummaryrefslogtreecommitdiffstats
path: root/modules/image
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 /modules/image
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 'modules/image')
-rw-r--r--modules/image/launcher.jsonc17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/image/launcher.jsonc b/modules/image/launcher.jsonc
new file mode 100644
index 0000000..8c45bc4
--- /dev/null
+++ b/modules/image/launcher.jsonc
@@ -0,0 +1,17 @@
+// Opens the quickshell desktop drawer. A static button: no state, because
+// waybar cannot see whether the drawer is open without the shell feeding it.
+//
+// An `image` module rather than a custom one: a custom module draws nothing at
+// all when its format is empty, and the format has to be empty because the
+// mark is an icon rather than text. `image` takes a path and needs no label.
+//
+// The path is the installed copy, which carries the udt accent: install.sh
+// substitutes it, so the mark follows the scheme.
+{
+ "image#launcher": {
+ "path": "$HOME/.config/waybar-udt/slackware.svg",
+ "size": 18,
+ "tooltip": false,
+ "on-click": "qs -p $HOME/Programming/GIT/quickshell/desktop ipc call drawer toggle"
+ }
+}