summaryrefslogtreecommitdiff
path: root/.config/waybar/config
blob: 2e4cf440818afe309dad19b33445cfd3459c5428 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// vi: ft=jsonc
{
	"layer": "top",
	"position": "top",
	"height": 40,
	"spacing": 8,
	"modules-left":   ["wlr/workspaces"],
	"modules-center": ["clock"],
	"modules-right":  [
		"custom/keyboard",
		"network",
		"custom/disk",
		"backlight",
		"wireplumber",
		"battery"
	],
	"wlr/workspaces": {
		"sort-by-number": true,
		"on-click": "activate",
		"format": " {name} ",
		"all-outputs": true
	},
	"clock": {
		"interval": 1,
		// https://www.typeerror.org/docs/cpp/chrono/format
		"format": "{:%d %B %Y (%A) — %T %Z}"
	},
	"custom/keyboard": {
		"interval": 1,
		"format": "  {}",
		"exec": "~/.config/waybar/custom/keyboard"
	},
	"network": {
		"interface": "wlp170s0",
		"format": "{ifname}",
		"iterval": 1,
		"format-wifi": "  {essid}",
		"format-ethernet": "  {ipaddr}/{cidr}",
		"format-disconnected": "  No connection"
	},
	"custom/disk": {
		"interval": 30,
		"format": "  {}",
		"exec": "~/.config/waybar/custom/disk"
	},
	"backlight": {
		"interval": 1,
		"format": "{icon}  {percent}%",
		"format-icons": [""]
	},
	"wireplumber": {
		//"interval": 1,
		//"exec": "amixer get Master | grep -o '[0-9]*%' -m1 | tr -d %",
		"format": "<span font='Font Awesome 6 Free'>{icon}</span> {volume}%",
		"format-muted": "<span font='Font Awesome 6 Free'>{icon}</span> Muted",
		"format-icons": {
			"headphone": "",
			"default": ["", "", ""]
		}
	},
	"battery": {
		"bat": "BAT1",
		"states": {
			"critical": 20
		},
		"format": "{icon}   {capacity}%",
		"format-charging": " {capacity}%",
		"format-icons": ["", "", "", "", ""]
	}
}