-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathwaybar-config-example.jsonc
More file actions
71 lines (61 loc) · 2.48 KB
/
waybar-config-example.jsonc
File metadata and controls
71 lines (61 loc) · 2.48 KB
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
// Waybar Configuration Example
// Add this configuration to the modules section of ~/.config/waybar/config.jsonc
//
// After installing with: uv tool install waybar-ai-usage
// Or for development mode, use the full path with uv run
{
// Claude Code Usage Monitor
"custom/claude-usage": {
// After 'uv tool install waybar-ai-usage':
// IMPORTANT: Use full path to work with systemd-launched Waybar
"exec": "~/.local/bin/claude-usage --waybar",
// Example for Chromium:
// "exec": "~/.local/bin/claude-usage --waybar --browser chromium",
// Or for development mode:
// "exec": "uv run --directory /home/YOUR_USER/Codes/waybar-ai-usage python claude.py --waybar",
"return-type": "json",
"interval": 120, // Refresh every 2 minutes
"format": "{}",
"tooltip": true,
"on-click": "pkill -RTMIN+8 waybar", // Click to refresh immediately
"signal": 8 // Refresh when receiving signal 8
},
// OpenAI Codex CLI Usage Monitor
"custom/codex-usage": {
// After 'uv tool install waybar-ai-usage':
// IMPORTANT: Use full path to work with systemd-launched Waybar
"exec": "~/.local/bin/codex-usage --waybar",
// Example for Chromium:
// "exec": "~/.local/bin/codex-usage --waybar --browser chromium",
// Or for development mode:
// "exec": "uv run --directory /home/YOUR_USER/Codes/waybar-ai-usage python codex.py --waybar",
"return-type": "json",
"interval": 120, // Refresh every 2 minutes
"format": "{}",
"tooltip": true,
"on-click": "pkill -RTMIN+9 waybar", // Click to refresh immediately
"signal": 9 // Refresh when receiving signal 9
},
// GitHub Copilot Premium Request Usage Monitor
"custom/copilot-usage": {
// Requires ~/.config/waybar-ai-usage/copilot.conf with GITHUB_TOKEN=ghp_xxxxx
"exec": "~/.local/bin/copilot-usage --waybar",
"return-type": "json",
"interval": 3600, // Refresh every hour (monthly quota)
"format": "{}",
"tooltip": true,
"on-click": "pkill -RTMIN+10 waybar", // Click to refresh immediately
"signal": 10 // Refresh when receiving signal 10
},
// OpenCode Zen Balance Monitor
"custom/zen-balance": {
// Uses browser cookies - no API key needed
"exec": "~/.local/bin/zen-balance --waybar",
"return-type": "json",
"interval": 120, // Refresh every 2 minutes
"format": "{}",
"tooltip": true,
"on-click": "pkill -RTMIN+11 waybar", // Click to refresh immediately
"signal": 11 // Refresh when receiving signal 11
}
}