aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/custom/launcher.jsonc13
-rw-r--r--modules/image/launcher.jsonc17
2 files changed, 17 insertions, 13 deletions
diff --git a/modules/custom/launcher.jsonc b/modules/custom/launcher.jsonc
deleted file mode 100644
index 56f61fb..0000000
--- a/modules/custom/launcher.jsonc
+++ /dev/null
@@ -1,13 +0,0 @@
-// Opens the quickshell desktop drawer. A static button: no "exec", so it
-// cannot show whether the drawer is open, which would need the shell to feed
-// waybar.
-//
-// The Slackware mark is a CSS background image, tinted with the udt accent at
-// install time. It is the one always-coloured pill on the bar.
-{
- "custom/launcher": {
- "format": "",
- "tooltip": false,
- "on-click": "qs -p $HOME/Programming/GIT/quickshell/desktop ipc call drawer toggle"
- }
-}
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"
+ }
+}