diff --git a/home/config-files/waybar-mocha.css b/home/config-files/waybar-mocha.css index 1f44086..f6a10d7 100644 --- a/home/config-files/waybar-mocha.css +++ b/home/config-files/waybar-mocha.css @@ -79,6 +79,7 @@ window#waybar { #clock, #battery, #battery.bat2, +#battery.bat3, #cpu, #memory, #temperature, diff --git a/home/modules/wm.nix b/home/modules/wm.nix index 0f4a55a..f79a280 100644 --- a/home/modules/wm.nix +++ b/home/modules/wm.nix @@ -15,7 +15,7 @@ extraConfig = builtins.readFile ../config-files/hyprland.conf; }; - programs.waybar = lib.mkIf (pkgs.system == "x86_64-linux") { + programs.waybar = /* lib.mkIf (pkgs.system == "x86_64-linux") */ { enable = true; settings = { mainBar = { @@ -24,7 +24,7 @@ height = 30; # modules-left = ["wlr/workspaces"]; #modules-center = [ "hyprland/window" ]; - modules-center = ["hyprland/workspaces" "tray" "network" "battery" "battery#bat2" "clock"]; + modules-center = ["hyprland/workspaces" "tray" "network" "battery" "battery#bat2" "battery#bat3" "clock"]; "tray" = {"icon-size" = 21;}; "network" = { "format-wifi" = "NET: {essid} ({signalStrength}%) "; @@ -54,6 +54,17 @@ #"format-icons" = ''["", "", "", "", ""]''; "max-length" = 25; }; + "battery#bat3" = { + "bat" = "macsmc-battery"; + "interval" = 10; + "states" = { + "warning" = 30; + "critical" = 15; + }; + "format" = " BAT: {capacity}%"; + #"format-icons" = ''["", "", "", "", ""]''; + "max-length" = 25; + }; }; }; style = builtins.readFile ../config-files/waybar-mocha.css;