powermanager config
This commit is contained in:
@@ -29,12 +29,12 @@ let
|
|||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 300
|
timeout = 10
|
||||||
on-timeout = loginctl lock-session
|
on-timeout = loginctl lock-session
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 330
|
timeout = 15
|
||||||
on-timeout = hyprctl dispatch dpms off
|
on-timeout = hyprctl dispatch dpms off
|
||||||
on-resume = hyprctl dispatch dpms on
|
on-resume = hyprctl dispatch dpms on
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ let
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
STATE_FILE="''${XDG_STATE_HOME:-$HOME/.local/state}/power-profile"
|
STATE_FILE="''${XDG_STATE_HOME:-$HOME/.local/state}/power-profile"
|
||||||
ACTIVE_LINK="''${XDG_CONFIG_HOME:-$HOME/.config}/hypr/hypridle.conf"
|
ACTIVE_LINK="''${XDG_CONFIG_HOME:-$HOME/.config}/hypr/hypridle-active.conf"
|
||||||
|
|
||||||
PROFILES_NORMAL="normal"
|
PROFILES_NORMAL="normal"
|
||||||
PROFILES_CAFFE="caffeinated"
|
PROFILES_CAFFE="caffeinated"
|
||||||
@@ -199,6 +199,7 @@ in
|
|||||||
home.packages = [
|
home.packages = [
|
||||||
powerProfileScript
|
powerProfileScript
|
||||||
waybarScript
|
waybarScript
|
||||||
|
pkgs.hypridle
|
||||||
];
|
];
|
||||||
|
|
||||||
# We replace the default hypridle.service with our own service that is
|
# We replace the default hypridle.service with our own service that is
|
||||||
|
|||||||
Reference in New Issue
Block a user