From fa2de58c7e1afdceffeb0a71494b42648aa1d7b7 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sat, 13 Dec 2025 14:25:54 +0100 Subject: niri: add waybar --- share/cfg/waybar.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'share/cfg/waybar.nix') diff --git a/share/cfg/waybar.nix b/share/cfg/waybar.nix index bd6cc96..0626980 100644 --- a/share/cfg/waybar.nix +++ b/share/cfg/waybar.nix @@ -1,21 +1,16 @@ { lib, ... }: { programs.waybar = { - systemd = { - enable = true; - target = "hyprland-session.target"; - }; settings.mainBar = { layer = "top"; - position = "right"; + position = "top"; # width = 40; reload_style_on_change = true; - modules-left = [ "hyprland/workspaces" ]; + modules-left = [ "niri/workspaces" ]; modules-right = [ "battery#capacity" "battery#power" - "network" "cpu" "memory" "temperature" @@ -29,6 +24,10 @@ format = "{:%H:%M}"; }; + cpu = { + format = "\t{usage}%"; + }; + "battery#capacity" = { format = lib.concatStringsSep "\n" [ "{icon}" @@ -72,6 +71,6 @@ }; }; }; # end of settings.mainBar - style = builtins.readFile ./waybar.css; + # style = builtins.readFile ./waybar.css; }; } -- cgit v1.3.1