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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
{
"layer": "top",
"position": "top",
"modules-left": [
"clock",
"custom/uptime",
"niri/window"
],
"modules-center": [
"custom/workspaces"
],
"modules-right": [
"custom/screenrecording-indicator",
"tray",
"custom/brightness",
"cpu",
"temperature",
"network",
"custom/vpn",
"pulseaudio",
"bluetooth",
"battery"
],
"niri/window": {
"format": "{app_id} | {title}",
"max-length": 30
},
"clock": {
"format": "{:%a, %b %d %H:%M}",
"tooltip": false
},
"cpu": {
"interval": 10,
"format": " {usage}%",
"max-length": 10
},
"temperature": {
"thermal-zone": 5,
"critical-threshold": 80,
"format": " {temperatureC}°C"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": {
"default": [
"",
"",
"",
"",
""
],
"charging": "<span color='#ffff00'></span>"
},
"format-plugged": " {capacity}%"
},
"bluetooth": {
"format": " {num_connections}",
"format-disabled": "<span color='#aaaaaa'></span>",
"format-connected": " {num_connections}",
"tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%",
"on-click": "$TERMINAL --app-id=TUI.float -e bluetui",
"on-click-right": "rfkill toggle bluetooth"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": " {icon} {volume}%",
"format-muted": "",
"format-icons": {
"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
"headphone": "",
"phone": "",
"phone-muted": "",
"portable": "",
"car": "",
"default": [
"",
""
]
},
// "on-click": "$TERMINAL --app-id=TUI.float -e wiremix",
"on-click": "pavucontrol",
"tooltip-format": "{desc}",
"scroll-step": 5
},
"network": {
"interface": "wlan0",
"format": "{ifname}",
"format-wifi": " {signalStrength}%",
"format-ethernet": " {ipaddr}/{cidr}",
"format-disconnected": "", //An empty format will hide the module.
"tooltip-format": " {ifname} via {gwaddr}",
"tooltip-format-wifi": " {essid} {signalStrength}%",
"tooltip-format-ethernet": "{ifname}",
"tooltip-format-disconnected": "",
"max-length": 50,
"interval": 60,
"on-click": "$TERMINAL --app-id TUI.float -e wifitui",
"on-click-right": "rfkill toggle wlan"
},
"custom/vpn": {
"format": " VPN",
"exec": "echo '{\"class\": \"connected\"}'",
"exec-if": "test -d /proc/sys/net/ipv4/conf/proton0",
"return-type": "json",
"interval": 5
},
"custom/workspaces": {
"exec": "~/.config/waybar/niri-workspaces",
"return-type": "json",
"format": "{}"
},
// The below module require `ddcutil` to be working on the system
// or it will not work
"custom/brightness": {
"format": "☀ {}%",
"tooltip-format": "EXT: ☀ {}%",
"interval": "once",
"signal": 9,
"exec": "~/.config/waybar/brightness get",
"on-scroll-up": "~/.config/waybar/brightness up",
"on-scroll-down": "~/.config/waybar/brightness down",
"on-click": "~/.config/waybar/brightness left_click",
"on-click-right": "~/.config/waybar/brightness right_click"
},
"custom/screenrecording-indicator": {
"on-click": "~/.local/bin/screenrecord",
"exec": "~/.config/waybar/waybar-screenrecord",
"signal": 8,
"return-type": "json"
},
"custom/uptime": {
"format": "{}",
"interval": 1600,
"tooltip": false,
"exec": "~/.config/waybar/uptime"
}
}
|