Modify waybar
This commit is contained in:
@ -23,20 +23,12 @@ in
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
};
|
||||
|
||||
xdg.configFile."waybar/config.jsonc" = {
|
||||
source = ./config.jsonc;
|
||||
onChange = ''
|
||||
${pkgs.busybox}/bin/pkill -SIGUSR2 waybar
|
||||
'';
|
||||
};
|
||||
xdg.configFile."waybar/style.css" = {
|
||||
text = ''
|
||||
settings.mainBar = builtins.fromJSON (builtins.readFile ./config.json);
|
||||
style = ''
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: JetBrainsMono Nerd Font;
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
border-radius: 17px;
|
||||
}
|
||||
|
||||
@ -53,6 +45,8 @@ in
|
||||
#custom-spotify,
|
||||
#pulseaudio,
|
||||
#window,
|
||||
#idle_inhibitor,
|
||||
#cpu,
|
||||
#tray {
|
||||
padding: 5 15px;
|
||||
border-radius: 12px;
|
||||
@ -188,7 +182,11 @@ in
|
||||
|
||||
#tray menu {
|
||||
background-color: #${palette.base00};
|
||||
opacity: 0.8;
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
#battery.warning {
|
||||
color: #${palette.base08};
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
@ -220,9 +218,6 @@ in
|
||||
border-radius: 17px;
|
||||
}
|
||||
'';
|
||||
onChange = ''
|
||||
${pkgs.busybox}/bin/pkill -SIGUSR2 waybar
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user