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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
{
"exclusive": true,
"reload_style_on_change": true,
"position": "top",
"margin-top": 0,
"spacing": 0,
"height": 0,
"margin-bottom": 0,
"modules-left": [
"niri/workspaces",
"custom/separator",
"tray",
"custom/separator2",
"custom/separator5",
"custom/media",
"custom/separator6"
],
"modules-center": ["custom/separator", "custom/clock", "custom/separator2"],
"modules-right": [
"custom/separator",
"custom/separator3",
"custom/kbd",
"custom/separator3",
"pulseaudio",
"custom/separator3",
"memory",
"custom/separator2"
],
"niri/workspaces": {
"disable-scroll": true,
"format": "{index}"
},
"custom/separator": {
"format": "[",
"tooltip": false
},
"custom/separator2": {
"format": "]",
"tooltip": false
},
"custom/separator3": {
"format": "",
"tooltip": false
},
"custom/separator5": {
"exec": "sh -c 'if pgrep -x cliamp >/dev/null || playerctl status 2>/dev/null | grep -qE \"Playing|Paused\"; then echo \"{\\\"text\\\":\\\"[\\\",\\\"class\\\":\\\"show\\\"}\"; else echo \"{\\\"text\\\":\\\"\\\",\\\"class\\\":\\\"hide\\\"}\"; fi'",
"return-type": "json",
"interval": 2,
"format": "{}"
},
"custom/separator6": {
"exec": "sh -c 'if pgrep -x cliamp >/dev/null || playerctl status 2>/dev/null | grep -qE \"Playing|Paused\"; then echo \"{\\\"text\\\":\\\"]\\\",\\\"class\\\":\\\"show\\\"}\"; else echo \"{\\\"text\\\":\\\"\\\",\\\"class\\\":\\\"hide\\\"}\"; fi'",
"return-type": "json",
"interval": 2,
"format": "{}"
},
"memory": {
"interval": 2,
"format": "RAM {used:0.1f} / {total:0.1f} GB",
"on-click": "foot btop",
"states": {
"warning": 50,
"critical": 80
}
},
"custom/kbd": {
"exec": "/home/seraphim/dotfiles-gentoo/.config/waybar/kbd-layout.sh",
"tooltip": false
},
"custom/clock": {
"exec": "date +'%H:%M %p - %A, %b %d' | tr '[:upper:]' '[:lower:]'",
"interval": 1,
"tooltip": false
},
"pulseaudio": {
"justify": "center",
"format": "vol {volume}%",
"on-click": "foot wiremix",
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"tooltip-format": "Playing at {volume}%",
"scroll-step": 5,
"format-muted": "vol <span style='italic' weight='900' color='#999999'>muted</span>",
"format-icons": {
"headphone": "",
"default": ["", "", ""]
},
"states": {
"warning": 50,
"critical": 10
}
},
"custom/media": {
"format": "{}",
"max-length": 30,
"interval": 2,
"exec": "playerctl metadata --format '{{ artist }} - {{ title }}' 2>/dev/null || echo \"\"",
"on-click": "playerctl play-pause"
},
"tray": {
"icon-size": 14,
"spacing": 3
},
"custom/analyze-theme": {
"exec": "node /home/seraphim/dotfiles-gentoo/.config/waybar/custom/analyze-theme.js",
"interval": 5,
"tooltip": true,
"format": "{}",
"return-type": "json"
}
}
|