Merge branch 'waybar-rice'
Some checks failed
pre-commit / pre-commit (push) Failing after 18s

This commit is contained in:
Torjus Håkestad 2024-05-30 00:01:33 +02:00
commit d5cffc807c

View File

@ -35,7 +35,7 @@ in
repo = "waybar"; repo = "waybar";
rev = "f74ab1eecf2dcaf22569b396eed53b2b2fbe8aff"; rev = "f74ab1eecf2dcaf22569b396eed53b2b2fbe8aff";
sha256 = "WLJMA2X20E5PCPg0ZPtSop0bfmu+pLImP9t8A8V4QK8="; sha256 = "WLJMA2X20E5PCPg0ZPtSop0bfmu+pLImP9t8A8V4QK8=";
} + "/themes/machiatto.css"; } + "/themes/macchiato.css";
}; };
programs.waybar = { programs.waybar = {
@ -45,18 +45,39 @@ in
target = "graphical-session.target"; target = "graphical-session.target";
}; };
style = '' style = ''
@import "macchiato.css";
* { * {
font-family: "FiraCodeNerdFont-Regular"; border: none;
font-size: 14px; border-radius: 10px;
font-weight: bold; min-height: 10px;
border-radius: 0px; font-family: "JetbrainsMono Nerd Font";
font-size: 15px;
transition-property: background-color; transition-property: background-color;
transition-duration: 0.5s; transition-duration: 0.5s;
color: @text;
} }
window#waybar {
background: transparent;
}
window#waybar.hidden {
opacity: 0.2;
}
#window {
margin-top: 6px;
padding-left: 10px;
padding-right: 10px;
border-radius: 10px;
transition: none;
color: transparent;
background: transparent;
}
@keyframes blink_red { @keyframes blink_red {
to { to {
background-color: rgb(242, 143, 173); background-color: @red;
color: rgb(26, 24, 38);
} }
} }
.warning, .warning,
@ -68,49 +89,38 @@ in
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
window#waybar {
background-color: transparent;
}
window > box {
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
border-bottom: 2px solid @color1;
background-color: @background;
}
#workspaces { #workspaces {
padding-left: 0px; padding-left: 12px;
padding-right: 4px; padding-right: 12px;
background-color: @base;
} }
#workspaces button { #workspaces button {
padding-top: 5px; padding-left: 12px;
padding-bottom: 5px; padding-right: 12px;
padding-left: 6px;
padding-right: 6px;
color: @color1;
} }
#workspaces button.active { #workspaces button.active {
background-color: @color1; background-color: @surface1;
color: rgb(26, 24, 38);
} }
#workspaces button.urgent { #workspaces button.urgent {
color: rgb(26, 24, 38); color: alpha(@red, 0.4);
} }
#workspaces button:hover { #workspaces button:hover {
background-color: #b38dac; background-color: @surface2;
color: rgb(26, 24, 38);
} }
tooltip { tooltip {
background: #3b4253; background-color: @base;
} }
tooltip label { tooltip label {
color: #e4e8ef; color: @text;
} }
#custom-launcher { #custom-launcher {
font-size: 20px; font-size: 15px;
padding-left: 8px; padding-left: 5px;
padding-right: 6px; padding-right: 12px;
color: #7ebae4; background-color: @base;
}
.modules-right {
background-color: @base;
} }
#mode, #mode,
#clock, #clock,
@ -126,54 +136,25 @@ in
#battery, #battery,
#custom-powermenu, #custom-powermenu,
#custom-flakestat, #custom-flakestat,
#custom-arrhist, #custom-arrhist {
#custom-cava-internal { padding-left: 12px;
padding-left: 10px; padding-right: 12px;
padding-right: 10px;
color: @color1;
}
#network.disconnected {
color: #cccccc;
} }
#battery.charging, #battery.charging,
#battery.full, #battery.full,
#battery.discharging { #battery.discharging {
color: #cf876f; color: @maroon;
} }
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
color: #d6dce7; color: @red;
}
#custom-powermenu {
color: #bd6069;
}
#tray {
padding-right: 8px;
padding-left: 10px;
}
#tray menu {
background: #3b4252;
color: #dee2ea;
}
#mpd.paused {
color: rgb(192, 202, 245);
font-style: italic;
}
#mpd.stopped {
background: transparent;
}
#mpd {
color: #e4e8ef;
}
#custom-cava-internal {
font-family: "Hack Nerd Font";
} }
''; '';
settings = [ settings = [
({ ({
"layer" = "top"; "layer" = "top";
"position" = "top"; "position" = "top";
modules-left = [ "custom/flakestat" "hyprland/workspaces" ]; modules-left = [ "custom/flakestat" ];
modules-center = [ "clock" ]; modules-center = [ "hyprland/workspaces" ];
modules-right = modules-right =
[ [
(lib.mkIf (withArrhist) "custom/arrhist") (lib.mkIf (withArrhist) "custom/arrhist")
@ -183,6 +164,7 @@ in
"cpu" "cpu"
"tray" "tray"
(lib.mkIf (withBattery) "battery") (lib.mkIf (withBattery) "battery")
"clock"
]; ];
"hyprland/workspaces" = { "hyprland/workspaces" = {
"format" = "{name}"; "format" = "{name}";