dotfiles/home/modules/waybar/config/style.nix

102 lines
1.9 KiB
Nix
Raw Normal View History

2025-01-16 21:44:11 -06:00
{ flake, ... }:
let
2025-01-14 16:17:42 -06:00
2025-01-16 21:44:11 -06:00
inherit (flake.config.aesthetics.themes)
currentTheme
2025-01-18 03:50:54 -06:00
palettes
2025-01-08 19:06:14 -06:00
font
;
2025-01-14 16:17:42 -06:00
2025-01-18 03:50:54 -06:00
el = palettes.${currentTheme}.colours;
2025-01-14 16:17:42 -06:00
2025-01-08 01:05:45 -06:00
custom = {
2025-01-18 03:50:54 -06:00
font = font.name;
2025-01-11 05:03:58 -06:00
font_size = "12px";
2025-01-08 01:05:45 -06:00
font_weight = "bold";
opacityBg = "0.90";
opacityBt = "1";
2025-01-18 03:50:54 -06:00
text_color = el.base0E;
secondary_accent = el.base07;
tertiary_accent = el.base15;
button_color = el.base04;
background_1 = el.base01;
background_2 = el.base00;
background_3 = el.base04;
2025-01-08 01:05:45 -06:00
};
2025-01-16 21:44:11 -06:00
in
''
2025-01-08 01:05:45 -06:00
* {
min-height: 0px;
font-family: ${custom.font};
font-weight: ${custom.font_weight};
}
window#waybar {
2025-01-14 16:17:42 -06:00
background: #${custom.background_2};
color: #${custom.background_3};
2025-01-08 01:05:45 -06:00
border: 2px solid;
border-radius: 30px;
2025-01-14 16:17:42 -06:00
border-color: #${custom.text_color};
2025-01-08 01:05:45 -06:00
min-height: 100px;
opacity: ${custom.opacityBg};
}
#workspaces {
font-size: 18px;
padding-left: 15px;
margin-bottom: 2px;
}
#workspaces button {
2025-01-14 16:17:42 -06:00
color: #${custom.button_color};
2025-01-08 01:05:45 -06:00
padding: 5px;
opacity: ${custom.opacityBt};
}
#workspaces button.empty {
2025-01-14 16:17:42 -06:00
color: #${custom.background_3};
2025-01-08 01:05:45 -06:00
}
#workspaces button.active {
2025-01-14 16:17:42 -06:00
color: #${custom.text_color};
2025-01-08 01:05:45 -06:00
}
2025-01-11 05:03:58 -06:00
#tray, #pulseaudio, #privacy, #cpu, #memory, #disk, #clock {
2025-01-08 01:05:45 -06:00
font-size: ${custom.font_size};
2025-01-14 16:17:42 -06:00
color: #${custom.text_color};
2025-01-08 01:05:45 -06:00
padding-right: 10px;
}
2025-01-11 05:03:58 -06:00
#privacy {
}
2025-01-08 01:05:45 -06:00
#cpu {
}
2025-01-08 19:06:14 -06:00
2025-01-08 01:05:45 -06:00
#memory {
}
2025-01-08 19:06:14 -06:00
2025-01-08 01:05:45 -06:00
#disk {
}
#tray {
}
#pulseaudio {
}
#clock {
}
#custom-launcher {
font-size: 20px;
2025-01-14 16:17:42 -06:00
color: #${custom.text_color};
2025-01-08 01:05:45 -06:00
font-weight: ${custom.font_weight};
padding-left: 10px;
}
2025-01-11 05:03:58 -06:00
#custom-weather {
font-size: 14px;
2025-01-14 16:17:42 -06:00
color: #${custom.text_color};
2025-01-11 05:03:58 -06:00
font-weight: ${custom.font_weight};
}
2025-01-08 01:05:45 -06:00
''