2024-05-06 23:21:25 +02:00
|
|
|
{
|
2024-02-16 14:52:29 +01:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
2024-05-06 23:21:25 +02:00
|
|
|
catppuccin.enable = true;
|
2024-02-16 14:52:29 +01:00
|
|
|
settings = {
|
2024-05-15 18:21:13 +02:00
|
|
|
mainBar =
|
|
|
|
let
|
2024-04-21 18:54:17 +02:00
|
|
|
calendar = {
|
|
|
|
mode = "year";
|
|
|
|
mode-mon-col = 3;
|
|
|
|
weeks-pos = "right";
|
|
|
|
format = {
|
|
|
|
months = "<span color='#ffead3'><b>{}</b></span>";
|
|
|
|
days = "<span color='#ecc6d9'><b>{}</b></span>";
|
|
|
|
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
|
|
|
|
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
|
|
|
|
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
|
|
|
|
};
|
|
|
|
};
|
2024-05-15 18:21:13 +02:00
|
|
|
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
|
|
|
height = 30;
|
|
|
|
output = [
|
|
|
|
"eDP-1"
|
|
|
|
"HDMI-A-1"
|
|
|
|
];
|
|
|
|
modules-left = [ "sway/workspaces" ];
|
|
|
|
modules-center = [ "clock#week" "clock#year" "clock#time" ];
|
|
|
|
modules-right = [ "network" "pulseaudio" "memory" "cpu" "battery" ];
|
2024-02-16 14:52:29 +01:00
|
|
|
|
2024-05-15 18:21:13 +02:00
|
|
|
"clock#time" = {
|
|
|
|
format = "{:%H:%M:%S}";
|
|
|
|
interval = 1;
|
|
|
|
tooltip-format = tooltip-format;
|
|
|
|
calendar = calendar;
|
2024-04-21 16:55:34 +02:00
|
|
|
};
|
|
|
|
|
2024-05-15 18:21:13 +02:00
|
|
|
"clock#week" = {
|
|
|
|
format = "{:%a}";
|
|
|
|
tooltip-format = tooltip-format;
|
|
|
|
calendar = calendar;
|
|
|
|
};
|
2024-04-21 18:44:28 +02:00
|
|
|
|
2024-05-15 18:21:13 +02:00
|
|
|
"clock#year" = {
|
|
|
|
format = "{:%Y-%m-%d}";
|
|
|
|
tooltip-format = tooltip-format;
|
|
|
|
calendar = calendar;
|
|
|
|
};
|
2024-04-21 17:01:48 +02:00
|
|
|
|
2024-05-15 18:21:13 +02:00
|
|
|
battery = {
|
|
|
|
format = "{icon} {capacity}% {time}";
|
|
|
|
format-time = " {H} h {M} m";
|
|
|
|
format-icons = [ "" "" "" "" "" ];
|
|
|
|
states = {
|
|
|
|
warning = 30;
|
|
|
|
critical = 15;
|
|
|
|
};
|
2024-04-21 16:39:57 +02:00
|
|
|
};
|
|
|
|
|
2024-05-15 18:21:13 +02:00
|
|
|
cpu = {
|
|
|
|
format = "<span color='#4f46e5'></span> {usage}%";
|
|
|
|
};
|
|
|
|
|
|
|
|
memory = {
|
|
|
|
format = "<span color='#7c3aed'></span> {percentage}%";
|
|
|
|
interval = 5;
|
|
|
|
};
|
2024-04-21 17:18:22 +02:00
|
|
|
|
2024-05-15 18:21:13 +02:00
|
|
|
pulseaudio = {
|
|
|
|
format = "<span color='#16a34a'>{icon}</span> {volume}% | {format_source}";
|
|
|
|
format-muted = "<span color='#b91c1c'></span> {volume}% | {format_source}";
|
|
|
|
format-source = "{volume}% <span color='#16a34a'></span>";
|
|
|
|
format-source-muted = "{volume}% <span color='#b91c1c'></span>";
|
|
|
|
format-icons = {
|
|
|
|
headphone = "";
|
|
|
|
default = [ "" "" "" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
network = {
|
|
|
|
format-ethernet = "<span color='#06b6d4'></span> | <span color='#ea580c'></span> {bandwidthUpBytes} <span color='#ea580c'></span> {bandwidthDownBytes}";
|
|
|
|
format-wifi = "<span color='#06b6d4'>{icon}</span> | <span color='#ea580c'></span> {bandwidthUpBytes} <span color='#ea580c'></span> {bandwidthDownBytes}";
|
|
|
|
format-disconnected = "<span color='#b91c1c'></span>";
|
|
|
|
format-icons = [ "" "" "" "" ];
|
|
|
|
interval = 5;
|
|
|
|
};
|
|
|
|
|
|
|
|
"sway/workspaces" = {
|
|
|
|
disable-scroll = true;
|
|
|
|
all-outputs = true;
|
|
|
|
};
|
2024-02-16 14:52:29 +01:00
|
|
|
};
|
|
|
|
};
|
2024-04-19 15:31:56 +02:00
|
|
|
systemd = {
|
|
|
|
enable = true;
|
|
|
|
target = "sway-session.target";
|
|
|
|
};
|
2024-04-21 18:44:28 +02:00
|
|
|
style = builtins.readFile ./style.css;
|
2024-02-16 14:52:29 +01:00
|
|
|
};
|
|
|
|
}
|