-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (24 loc) · 804 Bytes
/
config.py
File metadata and controls
30 lines (24 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
# Tracking
POLL_INTERVAL = 3 # seconds
# Database
DATA_DIR = os.path.expanduser("~/.timetracker")
DB_PATH = os.path.join(DATA_DIR, "timetracker.db")
# Idle detection
IDLE_THRESHOLD = 300 # seconds (5 minutes)
# Web dashboard
HOST = "127.0.0.1"
PORT = 9876
# Screenshots
SCREENSHOT_ENABLED = False # opt-in, requires Screen Recording permission
SCREENSHOT_INTERVAL = 300 # seconds (5 minutes)
SCREENSHOT_DIR = os.path.join(DATA_DIR, "screenshots")
SCREENSHOT_BLUR_RADIUS = 10 # CoreImage gaussian blur radius
SCREENSHOT_RETENTION_DAYS = 30
SCREENSHOT_MAX_WIDTH = 800 # resize to save disk space
# Browser bundle IDs -> AppleScript app names
BROWSER_BUNDLES = {
"com.google.Chrome": "Google Chrome",
"com.apple.Safari": "Safari",
"com.brave.Browser": "Brave Browser",
}