nichts/nyx/homes/notashelf/services/wayland/waybar/presets/catppuccin-mocha/style.nix
2024-04-09 23:11:33 +02:00

224 lines
3.9 KiB
Nix

{colors}:
with colors; let
OSLogo = builtins.fetchurl rec {
name = "OSLogo-${sha256}.png";
sha256 = "14mbpw8jv1w2c5wvfvj8clmjw0fi956bq5xf9s2q3my14far0as8";
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nix-snowflake.svg";
};
in ''
* {
font-family: Material Design Icons, Iosevka Nerd Font Mono;
font-size: 19px;
}
window#waybar {
background-color: #${base00};
border: .5px solid #${base01};
border-radius: 20px;
box-shadow: 2 3 2 2px #151515;
color: #${base05};
margin: 16px 16px;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
#custom-weather,
#clock,
#network,
#custom-swallow,
#custom-power,
#cpu,
#battery,
#backlight,
#memory,
#workspaces,
#custom-search,
#custom-power,
#custom-todo,
#custom-lock,
#custom-weather,
#volume,
#cpu,
#bluetooth,
#gamemode,
#pulseaudio {
border-radius: 15px;
margin: 0px 7px 0px 7px;
background-color: #${base02};
padding: 10px 0px 10px 0px;
}
#workspaces button {
background-color: transparent;
/* Use box-shadow instead of border so the text isn't offset */
color: #${base0D};
font-size: 21px;
/* padding-left: 6px; */
box-shadow: inset 0 -3px transparent;
}
#workspaces button:hover {
color: #${base0C};
box-shadow: inherit;
text-shadow: inherit;
}
#workspaces button.active {
color: #${base0A};
}
#workspaces button.urgent {
color: #${base08};
}
#custom-power {
color: #${base08};
}
#workspaces {
font-size: 15px;
background-color: #${base02};
}
#network {
color: #${base0D};
padding: 14px 0px 14px 0px;
}
#gamemode {
color: #${base0D};
}
#custom-weather {
color: #${base05};
background-color: #${base02};
}
#cpu {
color: rgba(0, 0, 0, 0.0);
background-color: rgba(0, 0, 0, 0.0);
margin: -50;
}
#cpu.50 {
color: #${base06};
background-color: #${base02};
border-radius: 15px;
margin: 0px 7px 0px 7px;
padding: 10px 0px 10px 0px;
}
#cpu.60 {
color: #${base09};
background-color: #${base02};
border-radius: 15px;
margin: 0px 7px 0px 7px;
padding: 10px 0px 10px 0px;
}
#cpu.70 {
color: #${base08};
background-color: #${base02};
border-radius: 15px;
margin: 0px 7px 0px 7px;
padding: 10px 0px 10px 0px;
}
#bluetooth {
color: #${base0E};
}
#bluetooth.off,
#bluetooth.pairable,
#bluetooth.discovering,
#bluetooth.disabled {
color: rgba(0, 0, 0, 0.0);
background-color: rgba(0, 0, 0, 0.0);
margin: -50;
}
#clock {
color: #${base05};
background-color: #${base02};
font-weight: 700;
font-size: 20px;
padding: 5px 0px 5px 0px;
font-family: "Iosevka Term";
}
#pulseaudio {
color: #${base0B};
padding: 5px 0px 5px 0px;
font-size: 30;
}
#pulseaudio.source-muted,
#pulseaudio.muted {
color: #${base08};
padding: 16px 0px 16px 0px;
font-size: 15;
}
#custom-swallow {
color: #${base0E};
padding: 14px 0px 14px 0px;
}
#custom-lock {
color: #${base0D};
font-size: 27;
padding: 6px 0px 6px 0px;
}
#custom-todo {
color: #${base05};
padding-left: 2px;
}
#custom-power {
margin-bottom: 7px;
padding: 14px 0px 14px 0px;
}
#custom-search {
background-image: url("${OSLogo}");
background-size: 65%;
background-position: center;
background-repeat: no-repeat;
margin-top: 7px;
}
#backlight {
color: #${base0A};
}
#battery {
color: #${base0C};
}
#battery.warning {
color: #${base09};
}
#battery.critical:not(.charging) {
color: #${base08};
}
tooltip {
font-family: 'Lato', sans-serif;
border-radius: 15px;
padding: 20px;
margin: 30px;
}
tooltip label {
font-family: 'Lato', sans-serif;
padding: 20px;
}
''