diff --git a/home/wm/waybar/default.nix b/home/wm/waybar/default.nix index 7be4055..96f080f 100644 --- a/home/wm/waybar/default.nix +++ b/home/wm/waybar/default.nix @@ -86,14 +86,49 @@ }; battery = { - format = "{capacity}% {icon}"; - "format-icons" = [ - "" - "" - "" - "" - "" - ]; + "bat" = "BAT1"; + + "full-at" = 80; + + "interval" = 1; + + "states" = { + "warning" = 30; + "critical" = 15; + }; + + "format" = "{capacity}% {icon}"; + + "format-icons" = { + "discharging" = [ + "󰁺" + "󰁻" + "󰁼" + "󰁽" + "󰁾" + "󰁿" + "󰂀" + "󰂁" + "󰂁" + "󰂂" + "󰁹" + ]; + "charging" = [ + "󰢜" + "󰂆" + "󰂇" + "󰂈" + "󰢝" + "󰂉" + "󰢞" + "󰂊" + "󰂋" + "󰂅" + ]; + }; + + "tooltip-format-charging" = "󱑂 {time}\n󱐋 +{power} W\n {health}"; + "tooltip-format-discharging" = "󱑂 {time}\n󱐋 -{power} W\n {health}"; }; clock = {