From 1c9fc8369f639ec6a8d061c3ff0b9b17f9d25118 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 13:01:40 +0200 Subject: 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 --- modules/image/launcher.jsonc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/image/launcher.jsonc (limited to 'modules/image/launcher.jsonc') 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" + } +} -- cgit v1.2.3