From cde30d3349608c1c6bd9a908901b787188a430a6 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Tue, 16 Jan 2024 18:52:05 +0100 Subject: waybar: configure battery module --- waybar/config | 14 ++++++++++++++ waybar/style.css | 4 ++++ 2 files changed, 18 insertions(+) (limited to 'waybar') diff --git a/waybar/config b/waybar/config index 90a3756..4b8ccdf 100644 --- a/waybar/config +++ b/waybar/config @@ -32,6 +32,20 @@ "format-icons": ["🔈", "🔉", "🔊"], "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" }, + "battery": { + "format": "🔋 {icon} {capacity}% {power} W {time}", + "format-charging": "⚡ {icon} {capacity}% {power} W {time}", + "format-fully-charged": "🔌 {icon} {capacity}% {power} W {time}", + "format-time": "{H}:{m}", + "format-icons": { + "full": "✅", + "low": "🚨" + }, + "states": { + "full": 100, + "low": 15 + } + }, "clock": { "format": "{:%Y-%m-%d %H:%M:%S}", "interval": 1 diff --git a/waybar/style.css b/waybar/style.css index 0398d08..22db648 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -46,6 +46,10 @@ button:hover { color: #f33; } +#battery.low { + color: #f33; +} + #network, #tray, #cpu, -- cgit v1.2.3