From 3ec8d42fbf6eed78c24de2caca63d91a2604ff50 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 19 May 2024 14:54:41 +0700 Subject: init --- config/hypr/hypridle.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config/hypr/hypridle.conf (limited to 'config/hypr/hypridle.conf') 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 +} -- cgit v1.2.3