Initial commit (after fork)
This commit is contained in:
parent
5ebba8a939
commit
5fe3f69a17
111 changed files with 1428 additions and 1611 deletions
41
modules/home/hyprland/hypridle.nix
Normal file
41
modules/home/hyprland/hypridle.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
pkgs,
|
||||
host,
|
||||
...
|
||||
}: {
|
||||
services.hypridle.enable = true;
|
||||
xdg.configFile."hypr/hypridle.conf".text =
|
||||
''
|
||||
general {
|
||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300 # 5min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
}
|
||||
''
|
||||
+ (
|
||||
if (host == "frues-pc")
|
||||
then ''
|
||||
listener {
|
||||
timeout = 150 # 2.5min.
|
||||
on-timeout = ckb-next --profile "Off" # turn off keyboard backlight.
|
||||
on-resume = ckb-next --profile "Personal" # turn on keyboard backlight.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = ddcmonitorctl off # screen off when timeout has passed
|
||||
on-resume = ddcmonitorctl on # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
''
|
||||
else ''
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
''
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue