diff --git a/waybar/config b/waybar/config index 7abc727..9476c3b 100644 --- a/waybar/config +++ b/waybar/config @@ -15,7 +15,7 @@ ], "modules-right": [ - "group/timeTracker", + "custom/timewarrior", "group/workspaceList", "group/metrics", "group/clockOutput", diff --git a/waybar/resources/custom_modules/time_warrior_waybar.py b/waybar/resources/custom_modules/time_warrior_waybar.py index 68907a2..ce554f7 100755 --- a/waybar/resources/custom_modules/time_warrior_waybar.py +++ b/waybar/resources/custom_modules/time_warrior_waybar.py @@ -39,7 +39,7 @@ def main(): output["text"] = "Timer running" output["class"] = "active" else: - output["text"] = "No timer" + output["text"] = "" output["class"] = "inactive" except Exception as e: output["text"] = "Error" diff --git a/waybar/style.css b/waybar/style.css index 18a2311..f4cec8a 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -26,6 +26,7 @@ window#waybar { } #timeTracker, +#custom-timewarrior.active, #workspaceList, #clockOutput, #metrics { @@ -108,10 +109,16 @@ tooltip { border-top: 1px solid #ebdbb2; border-right: 1px solid #665c54; border-bottom: 1px solid #665c54; - padding: 4px 8px; + padding: 5px 10px; box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); } tooltip label { + padding: 8px; color: #282828; } + +#custom-timewarrior.active { + color: #cc241d; + font-weight: bold; +}