mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-27 14:30:14 +01:00
feat: work with newly-made caffeine package
This commit is contained in:
parent
3bf723fc46
commit
273d6e9207
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue