niri: update hypridle setup

This commit is contained in:
Oleksandr Smirnov 2025-06-16 23:42:30 +03:00
parent eb23315269
commit 30ec1668c5
No known key found for this signature in database
3 changed files with 22 additions and 3 deletions

View file

@ -4,7 +4,7 @@ spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"; //
spawn-at-startup "~/.config/niri/waybar"
spawn-at-startup "dunst";
spawn-at-startup "xwayland-satellite"; // TODO: remove in next update
spawn-at-startup "hypridle";
spawn-at-startup "hypridle" "-c" "/home/olex/.config/niri/hypridle.conf";
// }}}
// env {{{
environment {

19
config/niri/hypridle.conf Normal file
View file

@ -0,0 +1,19 @@
general {
lock_cmd = hyprlock
}
listener { # screen lock
timeout = 210
on-timeout = loginctl lock-session
}
listener { # turn off screens
timeout = 230
on-timeout = niri msg action power-off-monitors
on-resume = niri msg action power-on-monitors
}
listener { # suspend
timeout = 500
on-timeout = systemctl suspend
}