Disabled garbage power management on mac. Tried to fix hyprlock
This commit is contained in:
parent
4f1690dc35
commit
86bdc0d6c5
2 changed files with 9 additions and 5 deletions
|
|
@ -17,7 +17,7 @@ services.hypridle = {
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
lock_cmd="pidof hyprlock || hyprlock";
|
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.
|
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||||
ignore_dbus_inhibit = false;
|
ignore_dbus_inhibit = false;
|
||||||
};
|
};
|
||||||
|
|
@ -38,6 +38,10 @@ listener = [
|
||||||
on-timeout="notify-send \"You're idle. Locking in 30 seconds.\"";
|
on-timeout="notify-send \"You're idle. Locking in 30 seconds.\"";
|
||||||
timeout=830;
|
timeout=830;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
on-timeout = "pidof hyprlock && systemctl suspend";
|
||||||
|
timeout = 120;
|
||||||
|
}
|
||||||
#{
|
#{
|
||||||
# on-timeout="loginctl lock-session";
|
# on-timeout="loginctl lock-session";
|
||||||
# timeout=360;
|
# timeout=360;
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ in
|
||||||
setupAsahiSound = true;
|
setupAsahiSound = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement = {
|
#powerManagement = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
powertop.enable = true;
|
# powertop.enable = true;
|
||||||
};
|
#};
|
||||||
#hardware.graphics.enable32Bit = lib.mkForce false;
|
#hardware.graphics.enable32Bit = lib.mkForce false;
|
||||||
environment.systemPackages = with pkgs; [mesa mesa.drivers
|
environment.systemPackages = with pkgs; [mesa mesa.drivers
|
||||||
#widevine-cdm
|
#widevine-cdm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue