From db9038ed711773c87da4f33fdec9a7c75410438e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Salas?= Date: Fri, 5 Jan 2024 11:25:53 -0300 Subject: [PATCH] waybar: add battery module I'm not exactly sure how this is gonna play with my desktop right now, because it obviously does not have a battery and I would like it to not show if I can avoid it. If it turns out it can't be trusted, I'll have to do something about it, like differentiating by hostnames, or something. Hopefully this works out well without many changes --- arch/link/.config/waybar/config.jsonc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/link/.config/waybar/config.jsonc b/arch/link/.config/waybar/config.jsonc index b5b670cf..6b4aa098 100644 --- a/arch/link/.config/waybar/config.jsonc +++ b/arch/link/.config/waybar/config.jsonc @@ -6,10 +6,18 @@ // "modules-left": ["wlr/workspaces", "hyprland/window"], // sway "modules-left": ["sway/workspaces", "sway/window"], - "modules-right": ["idle_inhibitor", "pulseaudio", "custom/dunst", "clock"], + "modules-right": ["battery", "idle_inhibitor", "pulseaudio", "custom/dunst", "clock"], "hyprland/window": { "format": "{}" }, + "battery": { + "format": "{icon} {capacity}%", + "format-full": "󱟢 {capacity}%", + "format-charging": "{icon}󱐋 {capacity}%", + // "format-not charging": "󱟢 {capacity}%", + "full-at": 98, + "format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"] + }, "clock": { "format": " 󱛡 {:%a %d %b %H:%M}" },