diff --git a/options/custom/programs/waybar/default.nix b/options/custom/programs/waybar/default.nix index 971da56..027c702 100644 --- a/options/custom/programs/waybar/default.nix +++ b/options/custom/programs/waybar/default.nix @@ -150,6 +150,7 @@ in { "wireplumber" "bluetooth" "network" + "power-profiles-daemon" "battery" ]; @@ -345,6 +346,20 @@ in { on-click-right = network; # Toggle networking on/off }; + # https://github.com/Alexays/Waybar/wiki/Module:-PowerProfilesDaemon + power-profiles-daemon = { + format = "{icon}"; + + format-icons = { + default = ""; + performance = ""; + balanced = ""; + power-saver = ""; + }; + + tooltip = false; + }; + # https://github.com/Alexays/Waybar/wiki/Module:-Battery "battery" = { format = "{icon} {power:.0f}W"; diff --git a/options/custom/programs/waybar/style.css b/options/custom/programs/waybar/style.css index aae09a2..ccb7546 100644 --- a/options/custom/programs/waybar/style.css +++ b/options/custom/programs/waybar/style.css @@ -107,6 +107,18 @@ tooltip label { color: #b58900; } +#power-profiles-daemon.default { + color: #dc322f; +} + +#power-profiles-daemon.performance { + color: #cb4b16; +} + +#power-profiles-daemon.power-saver { + color: #859900; +} + #tray { background: #073642; }