aboutsummaryrefslogtreecommitdiffstats
path: root/modules/custom/launcher.jsonc
blob: 9aa901c3164c9b96c88a66be506c8e21691708d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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.
//
// A custom module rather than an image one, because the mark has to change
// between the resting and hover states. An image module's `path` is read once
// and CSS cannot reach it, so the mark could not be swapped; a CSS
// background-image can, which is the same mechanism the workspaces, the clock
// and the mail pill already use.
//
// The format is a single space, and it has to be something. It defaults to
// "{text}", a static custom module has no text, and waybar draws no widget at
// all for a custom module whose formatted output is empty: not an empty pill,
// no pill. A space gives the label real content to be allocated for and shows
// nothing itself.
{
	"custom/launcher": {
		"format": " ",
		"tooltip": false,
		"on-click": "qs -p $HOME/Programming/GIT/quickshell/desktop ipc call drawer toggle"
	}
}