mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 11:43:55 -05:00
hypridle: fixed dpms settings to turn off after 5.5mins
This commit is contained in:
parent
706ef0ed78
commit
b61201ae21
|
@ -6,12 +6,12 @@
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
alyraffauf.desktop.hyprland.hypridle.enable =
|
alyraffauf.desktop.hyprland.hypridle.enable =
|
||||||
lib.mkEnableOption "Enables hypridle.";
|
lib.mkEnableOption "Enable hypridle.";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.hypridle.enable {
|
config = lib.mkIf config.alyraffauf.desktop.hyprland.hypridle.enable {
|
||||||
# Packages that should be installed to the user profile.
|
# Packages that should be installed to the user profile.
|
||||||
home.packages = with pkgs; [hypridle brightnessctl];
|
home.packages = with pkgs; [hypridle];
|
||||||
|
|
||||||
xdg.configFile."hypr/hypridle.conf".text = ''
|
xdg.configFile."hypr/hypridle.conf".text = ''
|
||||||
general {
|
general {
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 360 # 5.5min
|
timeout = 330 # 5.5min
|
||||||
on-timeout = ${pkgs.hyprland}/bin/hyprctl dispatch dpms off # screen off when timeout has passed
|
on-timeout = ${pkgs.hyprland}/bin/hyprctl dispatch dpms off # screen off when timeout has passed
|
||||||
on-resume = ${pkgs.hyprland}/bin/hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
on-resume = ${pkgs.hyprland}/bin/hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue