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

@ -8,22 +8,34 @@ in
enable = lib.mkEnableOption "enable ${name} waybar module";
};
config = lib.mkIf config.modules.waybar.enabled.${name}.enable {
programs.waybar.settings.mainBar.${name} = {
tooltip-format = "<big>{:%Y %B}</big>\n\n{calendar}";
interval = 1;
format = "{:%H:%M:%S}";
format-alt = "{:%Y-%m-%d %H:%M:%S}";
on-click-middle = "gnome-clocks";
calendar = {
weeks-pos = "left";
format = {
today = "<span color='#FF6666'><u>{}</u></span>"; # TODO: use nix-colors
weeks = "<span color='#707A8C'>{}</span>"; # TODO: use nix-colors
programs.waybar = {
settings.mainBar.${name} = {
tooltip-format = "<big>{:%Y %B}</big>\n\n{calendar}";
interval = 1;
format = "{:%H:%M:%S}";
format-alt = "{:%Y-%m-%d %H:%M:%S}";
on-click-middle = "gnome-clocks";
calendar = {
weeks-pos = "left";
format = {
today = "<span color='#FF6666'><u>{}</u></span>"; # TODO: use nix-colors
weeks = "<span color='#707A8C'>{}</span>"; # TODO: use nix-colors
};
};
home.packages = [
pkgs.gnome.gnome-clocks
];
};
home.packages = [
pkgs.gnome.gnome-clocks
];
style = ''
#clock {
color: #${config.colorScheme.palette.base04};
margin: 0px 2px;
padding: 0 15px;
border-radius: 999px;
box-shadow: none;
}
'';
};
};
}