diff options
| author | Miran Bastaja <mbastaja@sorre.xyz> | 2025-12-13 14:25:54 +0100 |
|---|---|---|
| committer | Miran Bastaja <mbastaja@sorre.xyz> | 2025-12-13 14:26:07 +0100 |
| commit | fa2de58c7e1afdceffeb0a71494b42648aa1d7b7 (patch) | |
| tree | 366f637cd00c87a2281893c24a346361a7232c29 /share | |
| parent | 8ad534d190797d3c8b74de664ac461269068001e (diff) | |
niri: add waybar
Diffstat (limited to 'share')
| -rw-r--r-- | share/cfg/waybar.nix | 15 | ||||
| -rw-r--r-- | share/home/niri.nix | 1 |
2 files changed, 8 insertions, 8 deletions
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; }; } diff --git a/share/home/niri.nix b/share/home/niri.nix index 458493d..07f8d2e 100644 --- a/share/home/niri.nix +++ b/share/home/niri.nix @@ -97,6 +97,7 @@ in { command = [ "${pkgs.mako}/bin/mako" ]; } { command = [ "${pkgs.wpaperd}/bin/wpaperd" ]; } { command = [ "${pkgs.soteria}/bin/soteria" ]; } # polkit agent + { command = [ "${pkgs.waybar}/bin/waybar" ]; } ]; environment = { |
