summaryrefslogtreecommitdiff
path: root/config/hypr/hypridle.conf
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/hypridle.conf')
-rw-r--r--config/hypr/hypridle.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf
new file mode 100644
index 0000000..8b9b1f7
--- /dev/null
+++ b/config/hypr/hypridle.conf
@@ -0,0 +1,23 @@
+general {
+ before_sleep_cmd = echo "Sleeping."
+ after_sleep_cmd = echo "Awake!"
+ ignore_dbus_inhibit = true
+}
+
+listener {
+ timeout = 90
+ on-timeout = brightnessctl -s ; brightnessctl set $(expr $(brightnessctl get) / 3)
+ on-resume = brightnessctl -r
+}
+
+listener {
+ timeout = 120
+ on-timeout = brightnessctl set 0
+ on-resume = brightnessctl -r
+}
+
+listener {
+ timeout = 240
+ on-timeout = systemctl suspend
+ on-resume = notify-send "Hey! Welcome back!" ; brightnessctl -r
+}