Use reset time instead of label for RL periods
This commit is contained in:
@@ -139,6 +139,7 @@ def format_window(name, window):
|
||||
tooltip += f", resets in {reset}"
|
||||
return {
|
||||
"label": label,
|
||||
"reset": reset or "--",
|
||||
"left": left,
|
||||
"used": used,
|
||||
"tooltip": tooltip,
|
||||
@@ -153,7 +154,7 @@ def output_window(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']}% <span font-size=\"7pt\">{window['label']}</span>", klass, "\n".join(tooltip))
|
||||
waybar(f"{window['left']}% <span font-size=\"7pt\">{window['reset']}</span>", klass, "\n".join(tooltip))
|
||||
|
||||
|
||||
def parse_args():
|
||||
|
||||
Reference in New Issue
Block a user