diff --git a/.config/waybar/modules/battery.jsonc b/.config/waybar/modules/battery.jsonc new file mode 100644 index 00000000..d9274c03 --- /dev/null +++ b/.config/waybar/modules/battery.jsonc @@ -0,0 +1,16 @@ +{ + "battery": { + "format": "{capacity}% {icon}", + "format-icons": { + "charging": ["󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅"], + "default": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"], + }, + "format-full": "Charged ", + "interval": 5, + "states": { + "warning": 20, + "critical": 10, + }, + "tooltip": false, + }, +} diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 81b25524..457d5e7b 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -27,6 +27,7 @@ } /* General Settings */ +#battery, #cava, #custom-cava, #custom-clipboard, @@ -162,6 +163,22 @@ window#waybar.hidden { } /* Individual Modules */ +#battery { + color: @mauve; +} + +#battery.warning { + color: @yellow; +} + +#battery.critical { + color: @peach; +} + +#battery.urgent { + color: @red; +} + #custom-cava { color: @lavender; border-radius: 12px;