more battery optimizations

This commit is contained in:
notgne2 2021-09-26 13:40:06 -07:00
parent 19a2e57246
commit c8b94bc9fe
No known key found for this signature in database
GPG key ID: BB661E172B42A7F8
2 changed files with 5 additions and 45 deletions

View file

@ -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 {

View file

@ -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";