From afcd2dc761865f7a55dc2eb32f35ef3369ad3063 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Mon, 6 Nov 2023 15:16:49 +0100 Subject: [PATCH] theming waybar --- roles/waybar/files/waybar/config | 2 +- roles/waybar/templates/style.j2 | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/roles/waybar/files/waybar/config b/roles/waybar/files/waybar/config index 6b88be3..873c676 100644 --- a/roles/waybar/files/waybar/config +++ b/roles/waybar/files/waybar/config @@ -87,7 +87,7 @@ "layer": "bottom", "position": "bottom", - "modules-left": ["tray", "custom/spotify", "custom/kubernetes"], + "modules-left": ["tray", "custom/spotify"], "modules-center": ["network#speed"], "modules-right": ["custom/systemd", "custom/backup", "custom/zfs-trim", "custom/zfs-scrub", "temperature", "custom/storage", "cpu", "memory" ], "custom/spotify": { diff --git a/roles/waybar/templates/style.j2 b/roles/waybar/templates/style.j2 index 1cbdc1e..98b2b58 100644 --- a/roles/waybar/templates/style.j2 +++ b/roles/waybar/templates/style.j2 @@ -30,8 +30,14 @@ window { } tooltip { - border: 1px solid rgba(100, 114, 125, 0.5); + border: 1px solid @warning; border-radius: 5px; + background: @background; + font-size: 12px; +} + +tooltip label { + color: @warning; } #workspaces { @@ -113,6 +119,21 @@ tooltip { color: rgba(217, 216, 216, 1); } +@keyframes blink { + to { + background: transparent; + color: transparent; + } +} + +#battery.critical:not(.charging) { + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} + #custom-storage.warning { color: @warning; background: transparent;