split off waybar styling to respective places

This commit is contained in:
Noa Aarts 2024-06-18 19:17:29 +02:00
parent e504eae280
commit 26e8b9571b
12 changed files with 248 additions and 258 deletions

View file

@ -14,10 +14,21 @@ in
];
config = lib.mkIf config.modules.waybar.enabled.${name}.enable {
modules.wofi.enable = true;
programs.waybar.settings.mainBar."${name}" = {
format = "";
on-click = "wofi-power";
on-click-right = "swaylock"; # TODO: change to whatever lock screen i want
programs.waybar = {
settings.mainBar."${name}" = {
format = "";
on-click = "wofi-power";
on-click-right = "swaylock"; # TODO: change to whatever lock screen i want
};
style = ''
#custom-poweroff {
color: #${config.colorScheme.palette.base04};
margin: 0px 2px;
padding: 0 15px;
border-radius: 999px;
box-shadow: inset 0 0 0 1px #${config.colorScheme.palette.base01};
}
'';
};
};
}