update suspend scripts
This commit is contained in:
parent
07aec27826
commit
d1f89a624a
3 changed files with 17 additions and 9 deletions
|
@ -83,6 +83,11 @@
|
||||||
extraBackends = with pkgs; [ samsung-unified-linux-driver ];
|
extraBackends = with pkgs; [ samsung-unified-linux-driver ];
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement.enable = (lib.mkForce true);
|
powerManagement = {
|
||||||
powerManagement.powertop.enable = true;
|
enable = (lib.mkForce true);
|
||||||
|
resumeCommands = ''
|
||||||
|
${pkgs.autorandr}/bin/autorandr -c
|
||||||
|
'';
|
||||||
|
powertop.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,10 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
delay = 600;
|
delay = 600;
|
||||||
command = "xrandr --output \"$PRIMARY_DISPLAY\" --brightness 1; systemctl suspend";
|
command = "${pkgs.writeShellScript "my-script" ''
|
||||||
|
xrandr --output "$PRIMARY_DISPLAY" --brightness 1
|
||||||
|
systemctl suspend
|
||||||
|
''}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue