nix-config/users/tacocat/wayland/waybar/default.nix

169 lines
3.9 KiB
Nix
Raw Permalink Normal View History

{
programs.waybar = {
enable = true;
style = ./style.css;
settings = {
mainBar = {
layer = "top";
position = "top";
modules-left = [
2023-11-14 04:51:19 +00:00
"sway/mode"
"sway/workspaces"
2023-11-20 01:27:09 +00:00
# "custom/arrow10"
2023-11-14 04:51:19 +00:00
"sway/window"
];
modules-right = [
"mpd"
2023-11-05 02:44:54 +00:00
"custom/arrow9"
"pulseaudio"
"custom/arrow8"
"network"
"custom/arrow7"
"memory"
"custom/arrow6"
"cpu"
"custom/arrow5"
"temperature"
"custom/arrow4"
"battery"
"custom/arrow2"
"tray"
"clock#date"
"custom/arrow1"
"clock#time"
];
"pulseaudio" = {
format = "{icon} {volume}%";
format-bluetooth = "{icon} {volume}%";
format-muted = "";
2023-11-05 02:44:54 +00:00
format-icons.default = ["" ""];
scroll-step = 1;
2023-11-05 02:44:54 +00:00
tooltip = false;
};
"network" = {
interval = 5;
format-wifi = " {essid} ({signalStrength}%)";
format-ethernet = "󰈀 {ifname}";
format-disconnected = "No connection";
format-alt = "{ipaddr}/{cidr}";
tooltip = false;
};
"river/mode" = {
format = "{}";
};
"river/window" = {
format = "{}";
max-length = 79;
tooltip = false;
};
"river/tags" = {
num-tags = 9;
};
"temperature" = {
critical-threshold = 90;
interval = 5;
2023-11-27 02:51:58 +00:00
thermal-zone = 0;
format = "{icon} {temperatureC}°";
format-icons = [
""
""
""
2023-11-05 02:44:54 +00:00
""
""
];
tooltip = false;
};
"memory" = {
interval = 5;
format = "RAM: {used:0.1f}G/{total:0.1f}G";
states = {
warning = 70;
critical = 90;
};
tooltip = false;
};
"cpu" = {
interval = 5;
tooltip = false;
format = " {usage}%";
format-alt = " {load}";
states = {
warning = 70;
critical = 90;
};
};
"battery" = {
interval = 10;
states = {
warning = 25;
critical = 15;
};
format-time = "{H}:{M:02}";
format = "{icon} {capacity}% ({time})";
format-charging = " {capacity}% ({time})";
format-charging-full = " {capacity}%";
format-full = "{icon} {capacity}%";
format-alt = "{icon} {power}W";
format-icons = [
2023-11-05 02:44:54 +00:00
""
""
""
""
""
];
tooltip = false;
};
2023-10-30 19:20:14 +00:00
"clock#date" = {
interval = 20;
format = "{:%e %b %Y}";
tooltip = false;
};
"tray" = {
icon-size = 18;
spacing = 10;
};
"custom/arrow1" = {
format = "";
tooltip = false;
};
"custom/arrow2" = {
format = "";
tooltip = false;
};
"custom/arrow3" = {
format = "";
tooltip = false;
};
"custom/arrow4" = {
format = "";
tooltip = false;
};
"custom/arrow5" = {
format = "";
tooltip = false;
};
"custom/arrow6" = {
format = "";
tooltip = false;
};
"custom/arrow7" = {
format = "";
tooltip = false;
};
"custom/arrow8" = {
format = "";
tooltip = false;
};
"custom/arrow9" = {
format = "";
tooltip = false;
};
"custom/arrow10" = {
format = "";
tooltip = false;
};
};
};
};
}