powersaving options
This commit is contained in:
parent
a40d7f3b98
commit
d6ea3790f4
3 changed files with 22 additions and 11 deletions
|
@ -79,6 +79,10 @@ window#waybar.floating #window {
|
||||||
color: @lavender;
|
color: @lavender;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#power-profiles-daemon {
|
||||||
|
color: @teal;
|
||||||
|
}
|
||||||
|
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
color: @pink;
|
color: @pink;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,14 @@
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# support power features such as suspend to ram
|
||||||
|
powerManagement.enable = true;
|
||||||
|
# tune power saving options on boot;
|
||||||
|
powerManagement.powertop.enable = true;
|
||||||
# thermald proactively prevents overheating on intel CPUs and works well with other tools
|
# thermald proactively prevents overheating on intel CPUs and works well with other tools
|
||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
|
# power-profile-daemon for power management
|
||||||
|
services.power-profiles-daemon.enable = true;
|
||||||
|
|
||||||
# nvidia driver
|
# nvidia driver
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
|
|
@ -165,17 +165,7 @@ in {
|
||||||
format = " {percentage}%";
|
format = " {percentage}%";
|
||||||
tooltip-format = "{used:0.1f}GiB/{avail:0.1f}GiB used\n{swapUsed:0.1f}GiB/{swapAvail:0.1f}GiB swap";
|
tooltip-format = "{used:0.1f}GiB/{avail:0.1f}GiB used\n{swapUsed:0.1f}GiB/{swapAvail:0.1f}GiB swap";
|
||||||
};
|
};
|
||||||
"network" = {
|
clock = {
|
||||||
format = "";
|
|
||||||
format-ethernet = "";
|
|
||||||
format-wifi = " {signalStrength}%";
|
|
||||||
format-disconnected = "";
|
|
||||||
tooltip-format = "{ifname} via {gwaddr}";
|
|
||||||
tooltip-format-wifi = "connected to {essid}";
|
|
||||||
tooltip-format-ethernet = "{ifname}";
|
|
||||||
tooltip-format-disconnected = "Disconnected";
|
|
||||||
};
|
|
||||||
"clock" = {
|
|
||||||
format = "{:%H:%M}";
|
format = "{:%H:%M}";
|
||||||
format-alt = "{:%a %b %d %R}";
|
format-alt = "{:%a %b %d %R}";
|
||||||
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||||
|
@ -201,6 +191,17 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
power-profiles-daemon = {
|
||||||
|
format = "{icon}";
|
||||||
|
tooltip-format = "Power profile: {profile}\nDriver: {driver}";
|
||||||
|
tooltip = true;
|
||||||
|
format-icons = {
|
||||||
|
default = "";
|
||||||
|
performance = " perf";
|
||||||
|
balanced = " balance";
|
||||||
|
power-saver = " save";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue