aboutsummaryrefslogtreecommitdiffstats
path: root/extra/waybar/config.jsonc
blob: 469495ab84c592737f4a14c7b7305417a2a85ff7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// mp3_player module for waybar. merge "custom/quran" into your config and add it to a
// modules-left / modules-center / modules-right list.
{
	"custom/quran": {
		// one long running client: it follows the player over its socket, prints a line per
		// change, and waits (at zero cost) while the player isn't running
		"exec": "mp3_player waybar",
		"return-type": "json",
		"max-length": 60,
		"on-click": "mp3_player ctl toggle",
		"on-click-middle": "mp3_player ctl prev",
		"on-click-right": "mp3_player ctl next",
		"on-scroll-up": "mp3_player ctl vol +5",
		"on-scroll-down": "mp3_player ctl vol -5"

		// other formats, all optional:
		// "exec": "mp3_player waybar --format='{icon} {surah}. {name} {position}/{duration}' --icons=,,,"
		// "exec": "mp3_player waybar --stopped='quran'"   (keep the module visible when nothing plays)
	}
}