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

108 lines
2 KiB
Nix
Raw Normal View History

2025-01-16 21:44:11 -06:00
{ flake, ... }:
let
inherit (flake.config.aesthetics.themes.schemes.catppuccin-macchiato)
2025-01-14 16:17:42 -06:00
colours
;
2025-01-16 21:44:11 -06:00
inherit (flake.config.aesthetics.themes)
currentTheme
elements
schemes
2025-01-08 19:06:14 -06:00
font
;
2025-01-14 16:17:42 -06:00
2025-01-16 21:44:11 -06:00
el = elements;
2025-01-14 16:17:42 -06:00
2025-01-16 21:44:11 -06:00
theme = colour: schemes.${currentTheme}.colours.${colour};
2025-01-14 16:17:42 -06:00
2025-01-08 01:05:45 -06:00
custom = {
font = font;
2025-01-11 05:03:58 -06:00
font_size = "12px";
2025-01-08 01:05:45 -06:00
font_weight = "bold";
2025-01-16 21:44:11 -06:00
text_color = theme el.keyword;
secondary_accent = theme el.link;
tertiary_accent = theme el.operator;
button_color = theme el.overlay2;
2025-01-14 16:17:42 -06:00
background_1 = colours.base;
background_2 = colours.crust;
background_3 = colours.surface2;
2025-01-08 01:05:45 -06:00
opacityBg = "0.90";
opacityBt = "1";
};
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
''