2025-03-27 12:54:14 +01:00
|
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
# Hyprland and related packages
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
|
hypridle
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Hypridle configuration
|
2025-03-27 13:11:56 +01:00
|
|
|
|
services.hypridle = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
general = {
|
|
|
|
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
|
|
|
|
ignore_dbus_inhibit = false;
|
|
|
|
|
lock_cmd = "hyprlock";
|
2025-04-08 22:59:34 +02:00
|
|
|
|
before_sleep_cmd = ''notify-send -u critical "Hey master, I’m getting sleepy… I’ll see you in my code dreams 💖" --icon
|
|
|
|
|
="$HOME/.config/hypr/avatar.png" --app-name="Hyprlock"'';
|
2025-03-27 13:11:56 +01:00
|
|
|
|
};
|
2025-03-27 12:54:14 +01:00
|
|
|
|
|
2025-03-27 13:11:56 +01:00
|
|
|
|
listener = [
|
|
|
|
|
{
|
|
|
|
|
timeout = 300;
|
|
|
|
|
on-timeout = "hyprlock";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
timeout = 600;
|
|
|
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
|
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-03-27 12:54:14 +01:00
|
|
|
|
}
|