From 408772a39eed161750084e4ca59c8c7ec72a0cc7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 26 Dec 2023 09:35:06 +0100 Subject: update wayfire/waybar config --- waybar/config | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'waybar') diff --git a/waybar/config b/waybar/config index 42c9a23..0bfdf65 100644 --- a/waybar/config +++ b/waybar/config @@ -7,7 +7,7 @@ // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"], "modules-center": ["sway/window"], - "modules-right": ["pulseaudio", "network", "cpu", "memory", "disk", "temperature", "keyboard-state", "battery", "battery#bat1", "clock", "tray"], + "modules-right": ["pulseaudio", "network", "cpu", "memory", "disk", "temperature", "keyboard-state", "battery#bat0", "battery#bat1", "clock", "tray"], // Modules configuration // "sway/workspaces": { // "disable-scroll": true, @@ -96,7 +96,7 @@ }, "disk": { "path": "/Z", - "format": "{percentage_used}% 🖴" + "format": "{free} 🖴" }, "temperature": { // "thermal-zone": 2, @@ -111,7 +111,8 @@ "format": "{percent}% {icon}", "format-icons": ["", "", "", "", "", "", "", "", ""] }, - "battery": { + "battery#bat0": { + "bat": "BAT0", "states": { // "good": 95, "warning": 30, @@ -126,7 +127,19 @@ "format-icons": ["", "", "", "", ""] }, "battery#bat1": { - "bat": "BAT1" + "bat": "BAT1", + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface -- cgit v1.2.3