Compare commits

..

No commits in common. "59adcecd104607fdeedd6acf35927b004fafe098" and "6c9feb58a6de6a8b4765673616baddee61901ef5" have entirely different histories.

4 changed files with 123 additions and 157 deletions

View file

@ -1,19 +1,17 @@
{ {
osConfig,
pkgs, pkgs,
lib, lib,
osConfig,
config,
... ...
}: let }: let
inherit (lib) getExe mkMerge mkIf; inherit (lib) getExe;
in { in {
imports = [./style.nix]; imports = [./style.nix];
programs.waybar = { programs.waybar = {
enable = true; enable = true;
systemd.enable = true; systemd.enable = true;
settings = { settings = {
mainBar = mkMerge [ mainBar = {
{
layer = "top"; layer = "top";
position = "top"; position = "top";
height = 30; height = 30;
@ -25,9 +23,7 @@ in {
modules-left = ["niri/workspaces" "niri/window"]; modules-left = ["niri/workspaces" "niri/window"];
modules-center = ["group/clock"]; modules-center = ["group/clock"];
modules-right = modules-right = ["tray" "group/status" "group/power"];
["tray" "group/status" "group/power"]
++ lib.optional config.services.swaync.enable "custom/notification";
battery = { battery = {
interval = 10; interval = 10;
@ -48,6 +44,10 @@ in {
max-length = 25; max-length = 25;
}; };
"niri/window" = {
icon = true;
};
"pulseaudio" = { "pulseaudio" = {
format = "{icon} {volume}%"; format = "{icon} {volume}%";
format-bluetooth = "{icon} {volume}%"; format-bluetooth = "{icon} {volume}%";
@ -146,28 +146,7 @@ in {
"󰤨" "󰤨"
]; ];
}; };
}
(mkIf osConfig.programs.niri.enable {
"niri/window" = {
icon = true;
}; };
})
(mkIf config.services.swaync.enable {
"custom/notification" = {
tooltip = false;
format = "{icon}";
format-icons = {
notification = "󱅫";
none = "󰂚";
dnd-notification = "󱏧";
dnd-none = "󱏧";
};
return-type = "json";
exec = "swaync-client -swb";
on-click = "swaync-client -t -sw";
};
})
];
}; };
}; };

View file

@ -88,8 +88,7 @@ in {
#network, #network,
#pulseaudio, #pulseaudio,
#tray, #tray,
#power-profiles-daemon #power-profiles-daemon {
{
padding: 0 0.5em; padding: 0 0.5em;
} }
@ -103,9 +102,5 @@ in {
padding: 0 1.2em; padding: 0 1.2em;
color: @base08; color: @base08;
} }
#custom-notification {
padding: 0 1.2em;
}
''; '';
} }

View file

@ -1,7 +0,0 @@
{lib, ...}: {
services.swaync = {
enable = true;
};
# systemd.user.services.swaync.Service.Environment = "WAYLAND_DISPLAY=wayland-1";
systemd.user.services.swaync.Unit.ConditionEnvironment = lib.mkForce "";
}

View file

@ -35,7 +35,6 @@ in {
"${home}/programs/niri" "${home}/programs/niri"
"${home}/programs/waybar" "${home}/programs/waybar"
"${home}/services/swaync.nix"
"${home}/programs/fuzzel.nix" "${home}/programs/fuzzel.nix"
"${home}/programs/swaybg.nix" "${home}/programs/swaybg.nix"
"${home}/programs/swaylock.nix" "${home}/programs/swaylock.nix"