diff options
author | altaf-creator <dev@altafcreator.com> | 2024-05-19 14:54:41 +0700 |
---|---|---|
committer | altaf-creator <dev@altafcreator.com> | 2024-05-19 14:54:41 +0700 |
commit | 3ec8d42fbf6eed78c24de2caca63d91a2604ff50 (patch) | |
tree | 985517bcce150969a050f7f408bea6670177bbb7 /config/hypr/hypridle.conf |
Diffstat (limited to 'config/hypr/hypridle.conf')
-rw-r--r-- | config/hypr/hypridle.conf | 23 |
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 +} |