feat(config): increase sleep duration to 1-4 minutes and expand default distraction keywords

1. Increased SLEEP_MIN_MS to 60s and SLEEP_MAX_MS to 240s so the cat takes real
   naps (1-4 min) instead of waking up after only a few seconds.
2. Increased SIT_MIN_MS to 15s and SIT_MAX_MS to 45s.
3. Added 'youtube', 'youtube.com/shorts', 'instagram', and 'twitch' to default
   distraction keywords. Browser tabs playing YouTube Shorts have titles like
   '<Video Title> - YouTube - Google Chrome' where 'shorts' does not appear.
This commit is contained in:
2026-09-08 23:37:49 +02:00
parent e439e638da
commit ff8cc01dd8
+9 -6
View File
@@ -62,10 +62,10 @@ ACTION_WEIGHTS: Dict[str, Dict[str, int]] = {
# Settled action intervals (ms) # Settled action intervals (ms)
LIFE_ACTION_INTERVAL_MS: int = 9000 LIFE_ACTION_INTERVAL_MS: int = 9000
SETTLED_ACTION_INTERVAL_MS: int = 3400 SETTLED_ACTION_INTERVAL_MS: int = 3400
SIT_MIN_MS: int = 3200 SIT_MIN_MS: int = 15000
SIT_MAX_MS: int = 9000 SIT_MAX_MS: int = 45000
SLEEP_MIN_MS: int = 6400 SLEEP_MIN_MS: int = 60000 # 1 to 4 minutes of peaceful sleep
SLEEP_MAX_MS: int = 18000 SLEEP_MAX_MS: int = 240000
# ============================================================================== # ==============================================================================
@@ -118,12 +118,15 @@ class Config:
auto_fallback_to_win32: bool = True auto_fallback_to_win32: bool = True
distraction_keywords: List[str] = field(default_factory=lambda: [ distraction_keywords: List[str] = field(default_factory=lambda: [
"shorts", "shorts",
"youtube shorts", "youtube.com/shorts",
"youtube",
"reels", "reels",
"instagram reels", "instagram.com/reels",
"instagram",
"tiktok", "tiktok",
"reddit", "reddit",
"twitch.tv", "twitch.tv",
"twitch",
]) ])
distraction_apps: List[str] = field(default_factory=lambda: [ distraction_apps: List[str] = field(default_factory=lambda: [
# Users can add specific processes e.g. "discord.exe", "steam.exe" # Users can add specific processes e.g. "discord.exe", "steam.exe"