aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.config/hypr/hypridle.conf
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-24 18:52:34 -0600
committerCraig Jennings <c@cjennings.net>2026-01-24 18:52:34 -0600
commitf01e96d000a195a59a7f25cb133caa72a486007e (patch)
treee68693939b738f06e16b02c736090d8fb8adf182 /dotfiles/hyprland/.config/hypr/hypridle.conf
downloadarchsetup-f01e96d000a195a59a7f25cb133caa72a486007e.tar.gz
archsetup-f01e96d000a195a59a7f25cb133caa72a486007e.zip
fix(testing): remove obsolete --skip-slow-packages option
This flag was removed from archsetup but remained in test scripts.
Diffstat (limited to 'dotfiles/hyprland/.config/hypr/hypridle.conf')
-rw-r--r--dotfiles/hyprland/.config/hypr/hypridle.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/dotfiles/hyprland/.config/hypr/hypridle.conf b/dotfiles/hyprland/.config/hypr/hypridle.conf
new file mode 100644
index 0000000..681c741
--- /dev/null
+++ b/dotfiles/hyprland/.config/hypr/hypridle.conf
@@ -0,0 +1,34 @@
+# Hypridle configuration
+# Replaces xautolock -time 5 -locker slock
+
+general {
+ lock_cmd = pidof hyprlock || hyprlock
+ before_sleep_cmd = loginctl lock-session
+ after_sleep_cmd = hyprctl dispatch dpms on
+}
+
+# Screen dim after 4.5 minutes
+listener {
+ timeout = 270
+ on-timeout = brightnessctl -s set 10%
+ on-resume = brightnessctl -r
+}
+
+# Lock screen after 5 minutes (matching xautolock -time 5)
+listener {
+ timeout = 300
+ on-timeout = loginctl lock-session
+}
+
+# Turn off screen after 10 minutes
+listener {
+ timeout = 600
+ on-timeout = hyprctl dispatch dpms off
+ on-resume = hyprctl dispatch dpms on
+}
+
+# Suspend after 30 minutes
+listener {
+ timeout = 1800
+ on-timeout = systemctl suspend
+}