nixos-config/modules/home/waybar/style.nix

100 lines
1.9 KiB
Nix
Raw Normal View History

2024-03-02 23:09:28 +01:00
{ ... }:
let custom = {
font = "JetBrainsMono Nerd Font";
font_size = "15px";
font_weight = "bold";
text_color = "#cdd6f4";
secondary_accent= "89b4fa";
tertiary_accent = "f5f5f5";
background = "11111B";
opacity = "0.98";
};
in
2023-11-05 17:56:55 +01:00
{
2023-11-05 11:40:44 +01:00
programs.waybar.style = ''
2024-03-01 23:38:10 +01:00
2023-11-05 11:40:44 +01:00
* {
2023-11-12 18:17:37 +01:00
border: none;
border-radius: 0px;
2024-03-01 23:38:10 +01:00
padding: 0;
margin: 0;
min-height: 0px;
2023-11-12 18:17:37 +01:00
font-family: ${custom.font};
2024-03-02 23:09:28 +01:00
font-weight: ${custom.font_weight};
2023-11-12 23:52:22 +01:00
opacity: ${custom.opacity};
2023-11-05 11:40:44 +01:00
}
window#waybar {
2024-03-02 23:09:28 +01:00
background: none;
2023-11-05 11:40:44 +01:00
}
#workspaces {
2024-03-03 17:37:03 +01:00
font-size: 18px;
padding-left: 15px;
2023-11-05 11:40:44 +01:00
}
#workspaces button {
2024-03-03 17:37:03 +01:00
color: ${custom.text_color};
padding-left: 6px;
padding-right: 6px;
}
#workspaces button.empty {
color: #6c7086;
2023-11-05 11:40:44 +01:00
}
#workspaces button.active {
2024-03-03 17:37:03 +01:00
color: #b4befe;
2023-11-05 11:40:44 +01:00
}
2024-03-03 17:37:03 +01:00
2024-04-13 18:27:49 +02:00
#tray, #pulseaudio, #network, #cpu, #memory, #disk, #clock, #battery {
2024-03-03 17:37:03 +01:00
font-size: ${custom.font_size};
color: ${custom.text_color};
2023-11-05 11:40:44 +01:00
}
2023-11-12 23:44:54 +01:00
#cpu {
padding-left: 15px;
2023-11-12 23:51:45 +01:00
padding-right: 9px;
2023-11-12 23:44:54 +01:00
margin-left: 7px;
}
2023-11-13 19:15:15 +01:00
#memory {
2023-11-13 19:13:32 +01:00
padding-left: 9px;
padding-right: 9px;
}
2023-11-13 19:15:15 +01:00
#disk {
2023-11-12 23:51:45 +01:00
padding-left: 9px;
2023-11-12 23:44:54 +01:00
padding-right: 15px;
}
2023-11-12 22:31:45 +01:00
#tray {
2023-11-12 22:33:24 +01:00
padding: 0 20px;
2023-11-12 22:31:45 +01:00
margin-left: 7px;
}
#pulseaudio {
2023-11-12 22:49:00 +01:00
padding-left: 15px;
2023-11-12 23:51:45 +01:00
padding-right: 9px;
2023-11-12 22:50:29 +01:00
margin-left: 7px;
2023-11-12 22:31:45 +01:00
}
2024-04-13 18:27:49 +02:00
#battery {
padding-left: 9px;
padding-right: 9px;
}
2023-11-12 22:31:45 +01:00
#network {
2023-11-12 23:51:45 +01:00
padding-left: 9px;
2023-11-12 22:49:00 +01:00
padding-right: 15px;
2023-11-05 11:40:44 +01:00
}
2023-11-12 22:31:45 +01:00
2023-11-12 18:17:37 +01:00
#clock {
2024-03-01 23:38:10 +01:00
padding-left: 9px;
padding-right: 15px;
2023-11-12 18:17:37 +01:00
}
2024-03-03 17:37:03 +01:00
2023-11-12 18:17:37 +01:00
#custom-launcher {
2024-03-03 17:37:03 +01:00
font-size: 20px;
color: #b4befe;
font-weight: ${custom.font_weight};
padding-left: 10px;
padding-right: 15px;
2023-11-12 18:17:37 +01:00
}
2023-11-05 11:40:44 +01:00
'';
}