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";
};
services.trayscale.enable = true;
services = {
trayscale.enable = true;
poweralertd.enable = true;
};
};
}

View file

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