mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-27 06:20:15 +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 {
|
listener {
|
||||||
timeout = 165 # in seconds
|
timeout = 300 # 5m in seconds
|
||||||
on-timeout = pgrep hyprlock || hyprlock
|
on-timeout = if [ -f "$HOME/.config/hypr/caffeine_mode" ]; then exit 0; else pgrep hyprlock || hyprlock; fi
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 1800 # in seconds
|
timeout = 1800 # 30m in seconds
|
||||||
on-timeout = systemctl suspend; hyprlock
|
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