more battery optimizations
This commit is contained in:
parent
19a2e57246
commit
c8b94bc9fe
2 changed files with 5 additions and 45 deletions
|
@ -362,17 +362,6 @@ let
|
||||||
Install.WantedBy = [ "default.target" ];
|
Install.WantedBy = [ "default.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.ydotoold = {
|
|
||||||
Unit = {
|
|
||||||
Description = "Generic command-line automation tool (no X!) ";
|
|
||||||
PartOf = "graphical-session.target";
|
|
||||||
};
|
|
||||||
|
|
||||||
Service.ExecStart = "${pkgs.ydotool}/bin/ydotoold";
|
|
||||||
|
|
||||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = { BW_SESSION = cfg.bitwardenSession; };
|
home.sessionVariables = { BW_SESSION = cfg.bitwardenSession; };
|
||||||
|
|
||||||
services.mpd = {
|
services.mpd = {
|
||||||
|
@ -552,40 +541,6 @@ let
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."gebaar/gebaard.toml".text = ''
|
|
||||||
[commands.swipe.three]
|
|
||||||
left_up = ""
|
|
||||||
right_up = ""
|
|
||||||
up = ""
|
|
||||||
left_down = ""
|
|
||||||
right_down = ""
|
|
||||||
down = "${rofiMenu}"
|
|
||||||
left = "${pkgs.ydotool}/bin/ydotool key Alt+Left"
|
|
||||||
right = "${pkgs.ydotool}/bin/ydotool key Alt+Right"
|
|
||||||
|
|
||||||
[commands.swipe.four]
|
|
||||||
left_up = ""
|
|
||||||
right_up = ""
|
|
||||||
up = ""
|
|
||||||
left_down = ""
|
|
||||||
right_down = ""
|
|
||||||
down = ""
|
|
||||||
left = ""
|
|
||||||
right = ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
systemd.user.services.gebaard = {
|
|
||||||
Unit = {
|
|
||||||
Description =
|
|
||||||
" A Super Simple WM Independent Touchpad Gesture Daemon for libinput ";
|
|
||||||
PartOf = "graphical-session.target";
|
|
||||||
};
|
|
||||||
|
|
||||||
Service.ExecStart = "${pkgs.gebaar-libinput}/bin/gebaard";
|
|
||||||
|
|
||||||
Install = { WantedBy = [ "sway-session.target" ]; };
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.mako.enable = true;
|
programs.mako.enable = true;
|
||||||
|
|
||||||
systemd.user.services.swayidle = mkIf cfg.screensaver.enable {
|
systemd.user.services.swayidle = mkIf cfg.screensaver.enable {
|
||||||
|
|
|
@ -30,6 +30,8 @@ in
|
||||||
|
|
||||||
services.thermald.enable = lib.mkDefault true;
|
services.thermald.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
boot.kernelParams = lib.optional cfg.battery "iwlwifi.power_save=Y";
|
||||||
|
|
||||||
# Don't kill the battery
|
# Don't kill the battery
|
||||||
services.upower = {
|
services.upower = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -44,6 +46,9 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
DISK_IOSCHED = "bfq bfq";
|
DISK_IOSCHED = "bfq bfq";
|
||||||
|
|
||||||
|
PCIE_ASPM_ON_BAT = "powersupersave";
|
||||||
|
PCIE_ASPM_ON_AC = "default";
|
||||||
|
|
||||||
PLATFORM_PROFILE_ON_BAT = lib.mkDefault "low-power";
|
PLATFORM_PROFILE_ON_BAT = lib.mkDefault "low-power";
|
||||||
PLATFORM_PROFILE_ON_AC = lib.mkDefault "performance";
|
PLATFORM_PROFILE_ON_AC = lib.mkDefault "performance";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue