Tweaks
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
"margin-bottom": 16,
|
||||
"margin-left": 16,
|
||||
"margin-right": 16,
|
||||
"modules-left": ["gamemode", "battery", "temperature", "cpu", "memory", "network", "custom/codex-primary", "custom/codex-secondary"],
|
||||
"modules-left": ["gamemode", "battery", "temperature", "cpu", "memory", "custom/codex-primary", "custom/codex-secondary", "network"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["mpris", "pulseaudio", "custom/output-device", "backlight", "idle_inhibitor", "clock"],
|
||||
"clock": {
|
||||
@@ -160,6 +160,7 @@
|
||||
"return-type": "json",
|
||||
"exec": "$HOME/.config/waybar/scripts/openai-rate.py --window primary",
|
||||
"exec-if": "test -r ~/.codex/auth.json",
|
||||
"escape": false,
|
||||
"format": " {}"
|
||||
},
|
||||
"custom/codex-secondary": {
|
||||
@@ -167,6 +168,7 @@
|
||||
"return-type": "json",
|
||||
"exec": "$HOME/.config/waybar/scripts/openai-rate.py --window secondary",
|
||||
"exec-if": "test -r ~/.codex/auth.json",
|
||||
"escape": false,
|
||||
"format": " {}"
|
||||
},
|
||||
"custom/backup": {
|
||||
|
||||
@@ -184,7 +184,7 @@ def selected_window_output(data, source, selector):
|
||||
|
||||
klass = usage_class(window["used"], rate_limit.get("limit_reached"))
|
||||
tooltip = [window["tooltip"], f"{window['left']}% remaining", f"source: {source}"]
|
||||
waybar(f"{window['left']}% {window['label']}", klass, "\n".join(tooltip))
|
||||
waybar(f"{window['left']}% <span font-size=\"7pt\">{window['label']}</span>", klass, "\n".join(tooltip))
|
||||
|
||||
|
||||
def combined_output(data, source):
|
||||
|
||||
Reference in New Issue
Block a user