Disabled garbage power management on mac. Tried to fix hyprlock

This commit is contained in:
Aleksandr Lebedev 2024-12-06 17:00:10 +01:00
parent 4f1690dc35
commit 86bdc0d6c5
2 changed files with 9 additions and 5 deletions

View file

@ -17,7 +17,7 @@ services.hypridle = {
general = {
lock_cmd="pidof hyprlock || hyprlock";
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
before_sleep_cmd = "pidof hyprlock || loginctl lock-session"; # lock before suspend.
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
ignore_dbus_inhibit = false;
};
@ -38,6 +38,10 @@ listener = [
on-timeout="notify-send \"You're idle. Locking in 30 seconds.\"";
timeout=830;
}
{
on-timeout = "pidof hyprlock && systemctl suspend";
timeout = 120;
}
#{
# on-timeout="loginctl lock-session";
# timeout=360;

View file

@ -16,10 +16,10 @@ in
setupAsahiSound = true;
};
powerManagement = {
enable = true;
powertop.enable = true;
};
#powerManagement = {
# enable = true;
# powertop.enable = true;
#};
#hardware.graphics.enable32Bit = lib.mkForce false;
environment.systemPackages = with pkgs; [mesa mesa.drivers
#widevine-cdm