power profiles daemon

This commit is contained in:
Kopatz
2025-08-31 12:48:35 +02:00
parent b45450f4ff
commit baac5918c0
4 changed files with 37 additions and 20 deletions

View File

@@ -23,6 +23,7 @@
#custom-amd-gpu,
#custom-nvidia,
#memory,
#power-profiles-daemon,
#network {
color: @text;
padding: 0 0.5em;

View File

@@ -42,7 +42,8 @@ in {
"orientation" = "horizontal";
"modules" = [ "network" "cpu" "memory" "temperature" ]
++ lib.optionals osConfig.custom.hardware.nvidia.enable [ "custom/nvidia" ]
++ lib.optionals osConfig.custom.hardware.amd-gpu.enable [ "custom/amd-gpu" ];
++ lib.optionals osConfig.custom.hardware.amd-gpu.enable [ "custom/amd-gpu" ]
++ lib.optionals osConfig.services.power-profiles-daemon.enable [ "power-profiles-daemon" ];
};
"group/other" = {
"orientation" = "horizontal";
@@ -149,6 +150,17 @@ in {
};
"status-icons" = { "paused" = ""; };
};
"power-profiles-daemon" = {
"format" = "{icon}";
"tooltip-format" = "Power profile: {profile}\nDriver: {driver}";
"tooltip" = true;
"format-icons" = {
"default" = "";
"performance" = "";
"balanced" = "";
"power-saver" = "";
};
};
"custom/nvidia" = {
"format" = "{}";
"interval" = 5;