From 78ae3700357171604c68607ab1e71682ede4aabc Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 11 Aug 2024 19:18:43 +0200 Subject: ... --- accounts/gkleen@sif/default.nix | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'accounts/gkleen@sif/default.nix') diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 9f48a770..f6049307 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -334,8 +334,12 @@ in { }; battery = { format = "{icon}"; - format-icons = ["" "" "" "" ""]; + states = { warning = 30; critical = 15; }; + format-icons = ["󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; + format-charging = "󰚄"; + format-plugged = "󰚥"; tooltip-format = "{capacity}% {timeTo}"; + interval = 20; }; tray = { icon-size = iconSize; @@ -378,11 +382,12 @@ in { @define-color white #dddddd; @define-color blue #1a8fff; @define-color green #23fd00; + @define-color orange #f28a21; @define-color red #f2201f; * { border: none; - font-family: "Fira Sans"; + font-family: "Fira Sans Nerd Font"; font-size: 10pt; min-height: 0; } @@ -392,6 +397,13 @@ in { color: @white; } + .modules-left { + margin-left: 9px; + } + .modules-right { + margin-right: 9px; + } + label.module { margin: 0 5px; } @@ -408,6 +420,13 @@ in { #workspaces button.empty { opacity: 0.5; } + + #battery.warning { + color: @orange; + } + #battery.critical { + color: @red; + } ''; }; wpaperd = { -- cgit v1.2.3