2024-06-03 16:02:50 +02:00
|
|
|
{ inputs, pkgs, ... }:
|
2024-06-01 18:06:00 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
|
|
|
package = inputs.waybar.packages.${pkgs.system}.waybar;
|
2024-06-01 18:28:19 +02:00
|
|
|
settings = {
|
2024-06-02 14:02:14 +02:00
|
|
|
mainBar = {
|
|
|
|
layer = "top";
|
2024-06-04 23:11:41 +02:00
|
|
|
height = pkgs.lib.mkDefault 35;
|
2024-06-02 14:02:14 +02:00
|
|
|
spacing = 4;
|
2024-06-02 14:50:05 +02:00
|
|
|
# output = "DP-2"; # Fill in with host-specific config!
|
2024-06-02 14:02:14 +02:00
|
|
|
modules-left = [ "wlr/taskbar" ];
|
|
|
|
modules-center = [ "hyprland/workspaces" ];
|
2024-06-03 16:02:50 +02:00
|
|
|
modules-right = [
|
|
|
|
"tray"
|
|
|
|
"wireplumber"
|
2024-06-04 23:11:41 +02:00
|
|
|
"battery"
|
2024-06-03 16:02:50 +02:00
|
|
|
"cpu#cpu2"
|
|
|
|
"cpu"
|
|
|
|
"memory"
|
2024-06-05 18:34:54 +02:00
|
|
|
"custom/temperature"
|
2024-06-03 16:02:50 +02:00
|
|
|
"clock"
|
|
|
|
"clock#clock2"
|
|
|
|
];
|
2024-06-02 14:02:14 +02:00
|
|
|
"wlr/taskbar" = {
|
|
|
|
on-click = "activate";
|
|
|
|
on-click-right = "close";
|
|
|
|
format = "{icon} {title:.20}";
|
|
|
|
all-outputs = true;
|
2024-06-01 18:28:19 +02:00
|
|
|
};
|
2024-06-02 14:02:14 +02:00
|
|
|
"wireplumber" = {
|
|
|
|
format = "{icon} {volume}%";
|
|
|
|
format-muted = "";
|
|
|
|
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
|
|
|
format-icons = [ "" "" "" ];
|
|
|
|
};
|
|
|
|
"hyprland/workspaces" = {
|
|
|
|
disable-scroll = true;
|
|
|
|
all-outputs = true;
|
|
|
|
warp-on-scroll = false;
|
|
|
|
format = "{name}";
|
|
|
|
};
|
2024-06-03 16:02:50 +02:00
|
|
|
"hyprland/window" = { max-length = 50; };
|
|
|
|
tray = { spacing = 10; };
|
2024-06-02 14:02:14 +02:00
|
|
|
"clock#clock2" = {
|
|
|
|
timezone = "Europe/Brussels";
|
|
|
|
format = "{:%H:%M:%S}";
|
|
|
|
interval = 1;
|
|
|
|
};
|
|
|
|
clock = {
|
|
|
|
timezone = "Europe/Brussels";
|
|
|
|
format = "{:%Y-%m-%d}";
|
|
|
|
interval = 3600;
|
|
|
|
};
|
|
|
|
cpu = {
|
|
|
|
format = "{max_frequency}GHz";
|
|
|
|
tooltip = false;
|
|
|
|
interval = 5;
|
|
|
|
};
|
|
|
|
"cpu#cpu2" = {
|
|
|
|
format = "CPU {usage}%";
|
|
|
|
tooltip = false;
|
|
|
|
interval = 5;
|
|
|
|
};
|
|
|
|
memory = {
|
|
|
|
interval = 5;
|
|
|
|
format = "{used:0.2f}G";
|
|
|
|
};
|
2024-06-05 18:34:54 +02:00
|
|
|
"custom/temperature" = {
|
2024-06-02 14:02:14 +02:00
|
|
|
interval = 5;
|
2024-06-05 18:34:54 +02:00
|
|
|
exec = pkgs.lib.mkDefault "echo TODO";
|
2024-06-02 14:02:14 +02:00
|
|
|
};
|
|
|
|
battery = {
|
|
|
|
states = {
|
|
|
|
warning = 30;
|
|
|
|
critical = 15;
|
|
|
|
};
|
|
|
|
format = "{icon}";
|
|
|
|
tooltip-format = "{capacity}% ({time})";
|
|
|
|
format-icons = [ " " " " " " " " " " ];
|
2024-06-04 23:11:41 +02:00
|
|
|
format-charging = "{capacity}% ";
|
|
|
|
format-full = "{capacity}% ";
|
|
|
|
format-alt = "{capacity}% {time} [{power:.2} W]";
|
2024-06-02 14:02:14 +02:00
|
|
|
};
|
|
|
|
};
|
2024-06-01 18:28:19 +02:00
|
|
|
};
|
|
|
|
style = ''
|
2024-06-02 14:02:14 +02:00
|
|
|
* {
|
|
|
|
/* `otf-font-awesome` is required to be installed for icons */
|
2024-06-04 23:11:41 +02:00
|
|
|
font-size: 14px;
|
2024-06-05 00:55:36 +02:00
|
|
|
font-weight: 500;
|
2024-06-05 02:34:34 +02:00
|
|
|
font-family: "Noto Sans", "FontAwesome";
|
2024-06-02 14:02:14 +02:00
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
window#waybar {
|
|
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
|
|
color: #ffffff;
|
|
|
|
transition-property: background-color;
|
|
|
|
transition-duration: .5s;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
button {
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
button:hover {
|
|
|
|
background: inherit;
|
|
|
|
box-shadow: inset 0 0 #ffffff;
|
|
|
|
}
|
|
|
|
#workspaces button {
|
|
|
|
padding: 0 5px;
|
|
|
|
background-color: transparent;
|
|
|
|
color: #ffffff;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#workspaces button:hover {
|
|
|
|
background-color: #023269;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#workspaces button.focused {
|
|
|
|
background-color: #023269;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#workspaces button.active {
|
|
|
|
background-color: #023269;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#workspaces button.urgent {
|
|
|
|
background-color: #ed8274;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#window,
|
2024-06-05 14:36:07 +02:00
|
|
|
#clock.clock2,
|
2024-06-02 14:02:14 +02:00
|
|
|
#clock,
|
|
|
|
#memory,
|
|
|
|
#disk,
|
2024-06-05 18:34:54 +02:00
|
|
|
#custom-temperature,
|
2024-06-02 14:02:14 +02:00
|
|
|
#backlight,
|
|
|
|
#network,
|
|
|
|
#pulseaudio,
|
|
|
|
#wireplumber,
|
2024-06-05 14:31:58 +02:00
|
|
|
#cpu.cpu2,
|
2024-06-05 14:36:07 +02:00
|
|
|
#cpu,
|
|
|
|
#battery,
|
2024-06-05 14:31:58 +02:00
|
|
|
#memory,
|
2024-06-02 14:02:14 +02:00
|
|
|
#tray {
|
2024-06-04 23:11:41 +02:00
|
|
|
padding: 0 12px;
|
2024-06-02 14:02:14 +02:00
|
|
|
border-radius: 7px;
|
|
|
|
color: #ffffff;
|
|
|
|
background-color: #1f2430;
|
2024-06-04 23:11:41 +02:00
|
|
|
margin-left:2px;
|
|
|
|
margin-right:2px;
|
2024-06-02 14:02:14 +02:00
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#clock.clock2,
|
|
|
|
#tray,
|
2024-06-05 14:31:58 +02:00
|
|
|
#cpu,
|
|
|
|
#battery,
|
2024-06-05 18:34:54 +02:00
|
|
|
#custom-temperature {
|
2024-06-02 14:02:14 +02:00
|
|
|
background-color: #023269;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#taskbar button {
|
|
|
|
padding: 0 12px;
|
|
|
|
border-radius: 7px;
|
|
|
|
color: #ffffff;
|
|
|
|
background-color: #1f2430;
|
2024-06-05 13:28:56 +02:00
|
|
|
margin-left:3px;
|
|
|
|
margin-right:3px;
|
2024-06-02 14:02:14 +02:00
|
|
|
}
|
|
|
|
#taskbar button.active {
|
|
|
|
background-color: #023269;
|
|
|
|
}
|
2024-06-01 18:06:00 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#window {
|
|
|
|
font-weight:400;
|
|
|
|
margin-left:0;
|
|
|
|
}
|
|
|
|
window#waybar.empty #window {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#clock {
|
|
|
|
margin-right:0;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
/* If workspaces is the leftmost module, omit left margin */
|
|
|
|
.modules-left > widget:first-child > #workspaces {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
/* If workspaces is the rightmost module, omit right margin */
|
|
|
|
.modules-right > widget:last-child > #workspaces {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
@keyframes blink {
|
|
|
|
to {
|
|
|
|
background-color: #ffffff;
|
|
|
|
color: #000000;
|
|
|
|
}
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#battery.critical:not(.charging) {
|
|
|
|
background-color: #f53c3c;
|
|
|
|
color: #ffffff;
|
|
|
|
animation-name: blink;
|
|
|
|
animation-duration: 0.5s;
|
|
|
|
animation-timing-function: linear;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-direction: alternate;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
label:focus {
|
|
|
|
background-color: #000000;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#tray > .passive {
|
|
|
|
-gtk-icon-effect: dim;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
|
2024-06-02 14:02:14 +02:00
|
|
|
#tray > .needs-attention {
|
|
|
|
-gtk-icon-effect: highlight;
|
|
|
|
background-color: #eb4d4b;
|
|
|
|
}
|
2024-06-01 18:28:19 +02:00
|
|
|
'';
|
|
|
|
};
|
2024-06-01 18:06:00 +02:00
|
|
|
}
|