small changes on waybar

This commit is contained in:
2025-04-15 19:45:23 +02:00
parent 9defcf7ad4
commit 0baab5a237

View File

@ -51,6 +51,13 @@
#temperature.critical { #temperature.critical {
color: #ff2222; color: #ff2222;
} }
#battery.critical {
color: #ff2222;
}
#cpu.high {
color: #ff2222;
}
''; '';
programs.waybar.settings.mainBar = { programs.waybar.settings.mainBar = {
@ -61,7 +68,7 @@
margin-right = 5; margin-right = 5;
modules-left = ["hyprland/workspaces" "custom/music"]; modules-left = ["hyprland/workspaces" "custom/music"];
modules-center = ["hyprland/window"]; modules-center = ["hyprland/window"];
modules-right = ["disk" "pulseaudio" "network" "custom/pipe" "cpu" "temperature" "custom/pipe" "memory" "battery" "clock"]; modules-right = ["disk" "pulseaudio" "network" "custom/pipe" "cpu" "custom/pipe" "temperature" "custom/pipe" "memory" "battery" "clock"];
"hyprland/workspaces" = { "hyprland/workspaces" = {
disable-scroll = true; disable-scroll = true;
@ -76,8 +83,9 @@
}; };
cpu = { cpu = {
format = " {usage}% |"; format = " {usage}% ";
interval = 5; states.high = 80;
interval = 5;
}; };
memory = { memory = {
@ -87,13 +95,15 @@
battery = { battery = {
bat = "BAT0"; bat = "BAT0";
full-at = 79;
states = { states = {
good = 79; good = 20;
warning = 30;
critical = 15; critical = 15;
}; };
format-time = " {H}:{m}"; format-time = " {H}:{m}";
format = " {icon} {capacity}%{time} |"; format-discharging = " {icon} {capacity}%{time} |";
format-charging = " {capacity}%{time} |";
format-plugged = "";
format-icons = [" " " " " " " " " "]; format-icons = [" " " " " " " " " "];
interval = 10; interval = 10;
}; };