45 lines
730 B
Nix
45 lines
730 B
Nix
|
{ config, ... }:
|
||
|
{
|
||
|
|
||
|
# include hyprland configs
|
||
|
home.file.".config/hypr/hypridle.conf".text = ''
|
||
|
|
||
|
# general
|
||
|
general {
|
||
|
ignore_dbus_inhibit = false
|
||
|
}
|
||
|
|
||
|
|
||
|
# listeners
|
||
|
# notify inactivity
|
||
|
listener {
|
||
|
timeout = 45
|
||
|
on-timeout = notify-send -t 4000 "Are you there ?"
|
||
|
}
|
||
|
|
||
|
listener {
|
||
|
timeout = 50
|
||
|
on-timeout = notify-send -t 4000 "Are you there ??"
|
||
|
}
|
||
|
|
||
|
listener {
|
||
|
timeout = 55
|
||
|
on-timeout = notify-send -t 4000 "Are you there ???"
|
||
|
}
|
||
|
|
||
|
|
||
|
# lock screen
|
||
|
listener {
|
||
|
timeout = 60
|
||
|
on-timeout = hyprlock
|
||
|
}
|
||
|
|
||
|
|
||
|
# suspend after 5 minutes
|
||
|
listener {
|
||
|
timeout = 500
|
||
|
on-timeout = systemctl suspend
|
||
|
}
|
||
|
'';
|
||
|
}
|