From 7b55b46f2ae360f1ecfc5d09fb99c102099148fb Mon Sep 17 00:00:00 2001 From: sentakuhm Date: Sat, 2 Mar 2024 00:20:27 +0100 Subject: [PATCH] add full hypridle example work with hyprlock. (#496) * add full hypridle example work with hyprlock. * removed general {} for better readability --- pages/Hypr Ecosystem/hypridle.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/pages/Hypr Ecosystem/hypridle.md b/pages/Hypr Ecosystem/hypridle.md index f50e28f..a5b54c1 100644 --- a/pages/Hypr Ecosystem/hypridle.md +++ b/pages/Hypr Ecosystem/hypridle.md @@ -36,4 +36,25 @@ listener { } ``` -You can define as many listeners as you want. \ No newline at end of file +You can define as many listeners as you want. + +Full hypridle example with hyprlock + +```ini +listener { + timeout = 300 # 5min + on-timeout = hyprlock # lock screen when timeout has passed + on-resume = notify-send "Welcome back!" # notification activity is detected after timeout has fired. +} + +listener { + timeout = 380 # 5.5min + on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed + on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. +} + +listener { + timeout = 1800 # 30min + on-timeout = systemctl suspend # suspend pc +} +```