From 30ec1668c5453615294aec119c2826302d32acf3 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Mon, 16 Jun 2025 23:42:30 +0300 Subject: [PATCH] niri: update hypridle setup --- config/hypr/hyprlock.conf | 4 ++-- config/niri/config.kdl | 2 +- config/niri/hypridle.conf | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 config/niri/hypridle.conf diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index c32fcf4..f883d17 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -36,7 +36,7 @@ label { input-field { monitor = size = 300, 50 - valign = "bottom" + valign = bottom position = 0%, 10% outline_thickness = 1 @@ -47,7 +47,7 @@ input-field { check_color = rgba(141, 186, 100, 0.5) fail_color = rgba(229, 90, 79, 0.5) - placeholder_text = "Enter Password"; + placeholder_text = Enter Password dots_spacing = 0.2 dots_center = true diff --git a/config/niri/config.kdl b/config/niri/config.kdl index d7b27ca..69fb157 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -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 { diff --git a/config/niri/hypridle.conf b/config/niri/hypridle.conf new file mode 100644 index 0000000..d26dd79 --- /dev/null +++ b/config/niri/hypridle.conf @@ -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 +}