60 lines
1.7 KiB
Nix
60 lines
1.7 KiB
Nix
{pkgs, ...}: {
|
||
programs.waybar = {
|
||
enable = true;
|
||
systemd.enable = true;
|
||
settings = {
|
||
mainBar = {
|
||
layer = "bottom";
|
||
position = "top";
|
||
height = 36;
|
||
modules-right = ["mpris" "power-profiles-daemon" "cpu" "idle_inhibitor" "wireplumber" "clock" "tray" "battery"];
|
||
"cpu" = {
|
||
"format" = "{icon}";
|
||
"format-icons" = ["▁" "▂" "▃" "▄" "▅" "▆" "▇" "█"];
|
||
};
|
||
"power-profiles-daemon" = {
|
||
"format" = "{icon}";
|
||
"tooltip-format" = "Power profile: {profile}\nDriver: {driver}";
|
||
"tooltip" = true;
|
||
"format-icons" = {
|
||
"default" = "";
|
||
"performance" = "";
|
||
"balanced" = "";
|
||
"power-saver" = "";
|
||
};
|
||
};
|
||
clock = {
|
||
format = "📅 {:%a %b-%d, %I:%M %p}";
|
||
};
|
||
idle_inhibitor = {
|
||
format = "{icon}";
|
||
format-icons = {
|
||
activated = "👀";
|
||
deactivated = "😴";
|
||
};
|
||
tooltip-format-activated = "system sleep inhibited";
|
||
tooltip-format-deactivated = "system will sleep when idle";
|
||
};
|
||
wireplumber = {
|
||
format-muted = "🔇";
|
||
format = "{icon} {volume}%";
|
||
format-icons = ["🔈" "🔉" "🔊"];
|
||
on-click = "pwvucontrol";
|
||
};
|
||
mpris = {
|
||
format = "▶️ {title}";
|
||
format-paused = "⏸️ {title}";
|
||
};
|
||
battery = {
|
||
format = "{icon} {capacity}%";
|
||
format-icons = ["🪫" "🔋" "🔋"];
|
||
format-charging = "🔌 {capacity}%";
|
||
states = {
|
||
warning = 30;
|
||
critical = 15;
|
||
};
|
||
};
|
||
};
|
||
};
|
||
};
|
||
}
|