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,14 +3,28 @@ let
|
|||
name = "cpu";
|
||||
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}" = {
|
||||
format = "cpu: {usage}%";
|
||||
tooltip = false;
|
||||
programs.waybar = {
|
||||
settings.mainBar."${name}" = {
|
||||
format = "cpu: {usage}%";
|
||||
tooltip = false;
|
||||
};
|
||||
style = ''
|
||||
#cpu {
|
||||
color: #${config.colorScheme.palette.base04};
|
||||
margin: 0px 0px;
|
||||
padding: 0 15px;
|
||||
|
||||
border-radius: 999px 0px 0px 999px;
|
||||
box-shadow: inset 0 0 0 1px #${config.colorScheme.palette.base01};
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue