waybar: replace custom battery with upower+poweralertd

This commit is contained in:
Vinzenz Schroeter 2025-11-20 23:46:08 +01:00
parent a1de736249
commit f2e9573384
2 changed files with 14 additions and 5 deletions

View file

@ -91,6 +91,9 @@
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier"; "idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier";
}; };
services.trayscale.enable = true; services = {
trayscale.enable = true;
poweralertd.enable = true;
};
}; };
} }

View file

@ -11,8 +11,10 @@
programs.waybar = { programs.waybar = {
enable = true; enable = true;
systemd.enable = true; systemd = {
systemd.target = "graphical-session.target"; enable = true;
target = "graphical-session.target";
};
style = lib.mkAfter (builtins.readFile ./waybar.css); style = lib.mkAfter (builtins.readFile ./waybar.css);
settings = { settings = {
mainBar = { mainBar = {
@ -35,9 +37,9 @@
"custom/swaync" "custom/swaync"
]; ];
modules-right = [ modules-right = [
"group/system-tray"
#"image" #"image"
"group/status-infos" "group/status-infos"
"group/system-tray"
"custom/wlogout" "custom/wlogout"
]; ];
@ -56,12 +58,13 @@
"group/status-infos" = { "group/status-infos" = {
orientation = "inherit"; orientation = "inherit";
modules = [ modules = [
"battery"
"custom/weather" "custom/weather"
"temperature" "temperature"
"cpu" "cpu"
"memory" "memory"
"disk" "disk"
# "battery"
"upower"
]; ];
}; };
@ -110,6 +113,9 @@
on-scroll-down = "shift_up"; on-scroll-down = "shift_up";
}; };
}; };
upower = {
icon-size = 14;
};
battery = { battery = {
format = "{capacity}% {icon}"; format = "{capacity}% {icon}";
format-icons = [ format-icons = [