Serenity/home/desktop/hypridle.nix
serenity-F 7442bc0ffa uh
2024-11-20 15:43:36 +10:00

22 lines
533 B
Nix
Executable file

{ config, pkgs, ... }: {
xdg.configFile."hypr/hypridle.conf".text = ''
general {
ignore_dbus_inhibit = false
}
# Screenlock
listener {
timeout = 10000
on-timeout = ${pkgs.hyprlock}/bin/hyprlock
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
}
# Suspend
listener {
timeout = 10000
on-timeout = systemctl suspend
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
}
'';
}