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:
+9
-6
@@ -62,10 +62,10 @@ ACTION_WEIGHTS: Dict[str, Dict[str, int]] = {
|
||||
# Settled action intervals (ms)
|
||||
LIFE_ACTION_INTERVAL_MS: int = 9000
|
||||
SETTLED_ACTION_INTERVAL_MS: int = 3400
|
||||
SIT_MIN_MS: int = 3200
|
||||
SIT_MAX_MS: int = 9000
|
||||
SLEEP_MIN_MS: int = 6400
|
||||
SLEEP_MAX_MS: int = 18000
|
||||
SIT_MIN_MS: int = 15000
|
||||
SIT_MAX_MS: int = 45000
|
||||
SLEEP_MIN_MS: int = 60000 # 1 to 4 minutes of peaceful sleep
|
||||
SLEEP_MAX_MS: int = 240000
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
@@ -118,12 +118,15 @@ class Config:
|
||||
auto_fallback_to_win32: bool = True
|
||||
distraction_keywords: List[str] = field(default_factory=lambda: [
|
||||
"shorts",
|
||||
"youtube shorts",
|
||||
"youtube.com/shorts",
|
||||
"youtube",
|
||||
"reels",
|
||||
"instagram reels",
|
||||
"instagram.com/reels",
|
||||
"instagram",
|
||||
"tiktok",
|
||||
"reddit",
|
||||
"twitch.tv",
|
||||
"twitch",
|
||||
])
|
||||
distraction_apps: List[str] = field(default_factory=lambda: [
|
||||
# Users can add specific processes e.g. "discord.exe", "steam.exe"
|
||||
|
||||
Reference in New Issue
Block a user