First pass at an OpenAI limit script

This commit is contained in:
2026-06-14 23:49:59 -05:00
parent 5abdee0d4b
commit 9005edd58c
3 changed files with 214 additions and 1 deletions
+9 -1
View File
@@ -63,7 +63,7 @@
"margin-right": 16,
"modules-left": ["gamemode", "battery", "temperature", "cpu", "memory", "network"],
"modules-center": [],
"modules-right": ["mpris", "pulseaudio", "custom/output-device", "backlight", "idle_inhibitor", "clock"],
"modules-right": ["mpris", "pulseaudio", "custom/output-device", "custom/openai-rate", "backlight", "idle_inhibitor", "clock"],
"clock": {
"format": "{:%a %b %d %I:%M %p}",
"tooltip": false
@@ -155,6 +155,14 @@
"exec": "flatpak remote-ls --updates --app | wc -l",
"exec-if": "test $(flatpak remote-ls --updates --app | wc -l) -gt 0"
},
"custom/openai-rate": {
"interval": 15,
"return-type": "json",
"exec": "$HOME/.config/waybar/scripts/openai-rate.py",
"exec-if": "test -r ~/.codex/auth.json",
"max-length": 90,
"format": "{}"
},
"custom/backup": {
"interval": 60,
"format": "",