From 5d1f09def6295b1de95557cb694a2a70055566a9 Mon Sep 17 00:00:00 2001 From: FivePixels Date: Sat, 25 Jun 2022 15:21:07 -0500 Subject: Add battery entry for archbook config --- .config/waybar/config | 19 +++++++++++++++++-- .config/waybar/style.css | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index 8b10703..ff4afe7 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -8,7 +8,7 @@ // Choose the order of the modules "modules-left": ["custom/hour", "custom/minutes", "sway/workspaces"], // "modules-center": ["custom/transparent"], - "modules-right": ["tray", "idle_inhibitor", "network", "pulseaudio", "clock"], + "modules-right": ["tray", "idle_inhibitor", "network", "pulseaudio", "battery", "clock"], // Modules configuration "sway/workspaces": { "disable-scroll": true, @@ -46,7 +46,22 @@ "tooltip-format": "{:%m/%d/%y %H:%M:%S}", "format-alt": "{:%m\n%d\n%y}" }, - "custom/transparent": { + "battery": { + "interval": 60, + "states": { + "warning": 30, + "critical": 15 + }, + "format-charging": " {icon} {capacity}%", + "format": "{icon} {capacity}%", + "format-icons": [ + "", + "", + "", + "", + "" + ], + "tooltip": true }, "cpu": { "format": "{usage}% ", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index f185f22..5447a72 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -50,7 +50,7 @@ window#waybar { } /* Modules in center of section */ -#idle_inhibitor, #memory, #cpu, #temperature, #network, #pulseaudio { +#idle_inhibitor, #memory, #cpu, #temperature, #network, #pulseaudio, #battery { padding: 1px 0px 1px 0px; margin: 0px 10px 0px 10px; color: white; -- cgit v1.2.3