feat: work with newly-made caffeine package

This commit is contained in:
Ahwx 2025-12-26 20:17:00 +01:00
parent 3bf723fc46
commit 273d6e9207

View file

@ -79,13 +79,13 @@
}
listener {
timeout = 165 # in seconds
on-timeout = pgrep hyprlock || hyprlock
timeout = 300 # 5m in seconds
on-timeout = if [ -f "$HOME/.config/hypr/caffeine_mode" ]; then exit 0; else pgrep hyprlock || hyprlock; fi
}
listener {
timeout = 1800 # in seconds
on-timeout = systemctl suspend; hyprlock
timeout = 1800 # 30m in seconds
on-timeout = if [ -f "$HOME/.config/hypr/caffeine_mode" ]; then exit 0; else systemctl suspend; hyprlock; fi
}
'';