waybar.css now as nix with substitution
This commit is contained in:
parent
ea7effe4f3
commit
20bf16b0c8
5 changed files with 67 additions and 57 deletions
63
modules/niri/waybar.css.nix
Normal file
63
modules/niri/waybar.css.nix
Normal file
|
@ -0,0 +1,63 @@
|
|||
{ config, ... }: let
|
||||
background = config.theme.base;
|
||||
font = config.theme.text;
|
||||
charging = config.theme.pine;
|
||||
warning = config.theme.rose;
|
||||
critical = config.theme.love;
|
||||
in {
|
||||
style = ''
|
||||
* {
|
||||
border: none;
|
||||
font-family: FiraCodeNerdFont;
|
||||
font-size: 18px;
|
||||
color: ${font};
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
/*-----module groups----*/
|
||||
.modules-right {
|
||||
background-color: ${background};
|
||||
margin: 2px 10px 0 0;
|
||||
}
|
||||
.modules-center {
|
||||
background-color: ${background};
|
||||
margin: 2px 0 0 0;
|
||||
}
|
||||
.modules-left {
|
||||
margin: 2px 0 0 10px;
|
||||
background-color: ${background};
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#memory,
|
||||
#network,
|
||||
#temperature,
|
||||
#wireplumber {
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
padding: 0 0 0 15px;
|
||||
}
|
||||
|
||||
/*-----Indicators----*/
|
||||
#battery.charging {
|
||||
color: ${charging};
|
||||
}
|
||||
#battery.warning:not(.charging) {
|
||||
color: ${warning};
|
||||
}
|
||||
#battery.critical:not(.charging) {
|
||||
color: ${critical};
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
color: ${critical};
|
||||
}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue