split off waybar styling to respective places
This commit is contained in:
parent
e504eae280
commit
26e8b9571b
12 changed files with 248 additions and 258 deletions
|
|
@ -3,13 +3,40 @@ let
|
|||
name = "tray";
|
||||
in
|
||||
{
|
||||
options.modules.waybar.modules = import ./addname.nix lib name;
|
||||
options.modules.waybar.enabled.${name} = {
|
||||
enable = lib.mkEnableOption "enable ${name} waybar module";
|
||||
options.modules.waybar = {
|
||||
modules = import ./addname.nix lib name;
|
||||
enabled.${name} = {
|
||||
enable = lib.mkEnableOption "enable ${name} waybar module";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.modules.waybar.enabled.${name}.enable {
|
||||
programs.waybar.settings.mainBar."${name}" = {
|
||||
spacing = 10;
|
||||
programs.waybar = {
|
||||
settings.mainBar."${name}" = {
|
||||
spacing = 10;
|
||||
};
|
||||
style = ''
|
||||
#tray {
|
||||
color: #${config.colorScheme.palette.base04};
|
||||
margin: 0px 2px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px 999px 999px 999px;
|
||||
box-shadow: inset 0px 0px 0 1px #${config.colorScheme.palette.base01};
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
background-color: #${config.colorScheme.palette.base08};
|
||||
border-radius: 999px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue