summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-10-09 14:52:46 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-10-09 14:52:46 +0800
commit6cb0a5aff8941940394d1499f6c21de7ccf67939 (patch)
tree92f75dafbb64ae7906fb9b8893a2b659f9e2a53d
parentdd8f7fe4777fc8150272b7b4e2ab20fc3e857c54 (diff)
add(general): added lot of stuff before sleep, after sleep etc
change(last listener): dpms off -> systemctl suspend
-rw-r--r--dot-config/hypr/hypridle.conf10
1 files changed, 6 insertions, 4 deletions
diff --git a/dot-config/hypr/hypridle.conf b/dot-config/hypr/hypridle.conf
index f1d6a98d..cf0367dd 100644
--- a/dot-config/hypr/hypridle.conf
+++ b/dot-config/hypr/hypridle.conf
@@ -1,7 +1,8 @@
general {
- lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
- before_sleep_cmd = loginctl lock-session # lock before suspend.
- after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
+ lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. before_sleep_cmd = loginctl lock-session # lock before suspend.
+ unlock_cmd = killall -q -s SIGUSR1 hyprlock
+ before_sleep_cmd = loginctl lock-session; $HOME/scripts/hypridle.sh --idle # lock before suspend.
+ after_sleep_cmd = $HOME/scripts/hypridle.sh --stopidle; hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
@@ -17,7 +18,8 @@ listener {
listener {
timeout = 1800000 # 30min
- on-timeout = hyprctl dispatch dpms off
+ # on-timeout = hyprctl dispatch dpms off
+ on-timeout = systemctl suspend
on-resume = hyprctl dispatch dpms on
}