158 lines
3.6 KiB
Nix
158 lines
3.6 KiB
Nix
{
|
|
programs.waybar = {
|
|
enable = true;
|
|
systemd.enable = true;
|
|
style = ./waybar.css;
|
|
settings = {
|
|
mainBar = {
|
|
layer = "bottom";
|
|
position = "top";
|
|
output = [
|
|
"DP-3"
|
|
"DP-4"
|
|
"DP-5"
|
|
"DP-6"
|
|
"DP-7"
|
|
"DP-8"
|
|
"DP-1"
|
|
"eDP-1"
|
|
];
|
|
|
|
modules-left = [
|
|
"hyprland/workspaces"
|
|
"hyprland/mode"
|
|
];
|
|
modules-center = [ "hyprland/window" ];
|
|
modules-right = [
|
|
"custom/icestats"
|
|
"pulseaudio"
|
|
"backlight"
|
|
"network"
|
|
"battery"
|
|
"clock"
|
|
"tray"
|
|
];
|
|
|
|
cpu = {
|
|
interval = 15;
|
|
format = " {}%";
|
|
max-length = 10;
|
|
};
|
|
|
|
"custom/icestats" = {
|
|
exec = ./src/ice_fetch.sh;
|
|
exec-if = ./src/ice_presence.sh;
|
|
interval = 1;
|
|
tooltip = true;
|
|
return-type = "json";
|
|
};
|
|
|
|
memory = {
|
|
interval = 30;
|
|
format = " {}%";
|
|
max-length = 10;
|
|
};
|
|
|
|
"pulseaudio" = {
|
|
format = "{volume}% {icon}";
|
|
format-bluetooth = "{volume}% {icon} ";
|
|
format-muted = "";
|
|
format-icons = {
|
|
headphone = "";
|
|
hands-free = "";
|
|
headset = " ";
|
|
phone = "";
|
|
portable = "";
|
|
car = "";
|
|
default = [
|
|
""
|
|
""
|
|
];
|
|
};
|
|
scroll-step = 1;
|
|
on-click = "pavucontrol";
|
|
ignored-sinks = [ "Easy Effects Sink" ];
|
|
};
|
|
|
|
backlight = {
|
|
tooltip = false;
|
|
format = " {}%";
|
|
interval = 1;
|
|
on-scroll-up = "brightnessctl s +1%";
|
|
on-scroll-down = "brightnessctl s 1%-";
|
|
};
|
|
|
|
network = {
|
|
format = "{ifname}";
|
|
format-wifi = "{essid} ({signalStrength}%) ";
|
|
format-ethernet = "{ipaddr}/{cidr} ";
|
|
format-disconnected = "";
|
|
tooltip-format = "{ifname} via {gwaddr} ";
|
|
tooltip-format-wifi = "{essid} ({signalStrength}%) ";
|
|
tooltip-format-ethernet = "{ifname} ";
|
|
tooltip-format-disconnected = "Disconnected";
|
|
max-length = 50;
|
|
};
|
|
|
|
battery = {
|
|
"bat" = "BAT1";
|
|
|
|
"full-at" = 80;
|
|
|
|
"interval" = 1;
|
|
|
|
"states" = {
|
|
"warning" = 30;
|
|
"critical" = 15;
|
|
};
|
|
|
|
"format" = "{capacity}% {icon}";
|
|
|
|
"format-icons" = {
|
|
"discharging" = [
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
];
|
|
"charging" = [
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
];
|
|
"plugged" = [
|
|
""
|
|
];
|
|
};
|
|
|
|
"tooltip-format-charging" = " {time}\n +{power} W\n {health}";
|
|
"tooltip-format-discharging" = " {time}\n -{power} W\n {health}";
|
|
"tooltip-format-plugged" = " +{power} W\n {health}";
|
|
};
|
|
|
|
clock = {
|
|
"format-alt" = "{:%a, %d. %b %H:%M}";
|
|
};
|
|
|
|
tray = {
|
|
"spacing" = 7;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|