-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml
More file actions
164 lines (150 loc) · 4.62 KB
/
config.toml
File metadata and controls
164 lines (150 loc) · 4.62 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# ──────────────────────────────────────────────────────────────
# VS Code Discord RPC — Configuration
# ──────────────────────────────────────────────────────────────
# Template variables you can use in any string field:
# {workspace} — project/folder name
# {filename} — current file name (e.g. "model.py")
# {filepath} — relative file path
# {language} — detected language (e.g. "Python")
# {language_icon} — icon key for the language (must match Discord asset)
# {activity} — auto-detected activity label
# {branch} — current git branch
# {problems} — number of workspace problems (if available)
# {line_count} — lines in the current file
# {file_size} — human-readable file size
# {elapsed} — time since presence started
# ──────────────────────────────────────────────────────────────
[discord]
client_id = "1469848428467982408"
[presence]
# What shows on your Discord profile
details = "{activity}"
state = "{filename} | {workspace}"
large_image = "{language_icon}"
large_text = "{language}"
small_image = "vscode"
small_text = "Visual Studio Code"
show_elapsed = true
# Override: set a static presence (ignores templates above)
# Uncomment to use:
# [presence.override]
# details = "Building something cool"
# state = "In the zone"
[vscode]
# "auto" = follow the most recently focused VS Code window
# Or set a workspace path to lock onto a specific instance:
# instance = "/home/user/projects/my-project"
instance = "auto"
# How often to poll for updates (seconds)
poll_interval = 5
[detection]
# Toggle individual detectors on/off
ml_training = true
gpu_monitoring = true
debugging = true
git_activity = true
docker = true
build_tasks = true
testing = true
# GPU utilization threshold (%) to flag as "training"
gpu_threshold = 30
# Extra process keywords that signal ML training
ml_process_keywords = [
"train", "fit", "epoch", "finetune", "fine_tune",
"accelerate", "deepspeed", "torchrun",
]
# Python imports that signal ML work
ml_module_keywords = [
"torch", "tensorflow", "keras", "lightning",
"transformers", "sklearn", "jax", "flax",
"diffusers", "accelerate", "wandb", "mlflow",
]
# Priority order (lower = higher priority, checked first)
[detection.priorities]
debugging = 1
ml_training = 2
testing = 3
build_tasks = 4
docker = 5
git_activity = 6
# ── Discord activity type mapping ─────────────────────────
# 0 = Playing, 3 = Watching, 5 = Competing
[presence.activity_types]
editing = 0
deep_coding = 0
writing_model_code = 0
debugging = 0
training_model = 0
building = 0
reviewing_code = 3
exploring_codebase = 3
writing_docs = 3
running_tests = 5
writing_tests = 5
configuring = 0
idle = 0
default = 0
# ── Dynamic small icon per activity ──────────────────────
[presence.activity_icons]
training_model = "brain"
ml_training = "brain"
debugging = "bug"
testing = "flask"
running_tests = "flask"
writing_tests = "flask"
building = "gear"
docker = "docker"
editing = "vscode"
deep_coding = "vscode"
reviewing_code = "vscode"
exploring_codebase = "vscode"
writing_docs = "vscode"
configuring = "gear"
idle = "vscode"
default = "vscode"
[activity_labels]
# Customize the text shown for each detected activity
ml_training = "Training a neural network"
debugging = "Debugging"
testing = "Running tests"
building = "Building project"
git_merge = "Resolving merge conflicts"
git_rebase = "Rebasing"
git_general = "Working with Git"
docker = "Working with Docker"
editing = "Editing"
reading = "Reading"
idle = "Idling in VS Code"
[language_icons]
# Map language names to Discord Rich Presence asset keys.
# Upload matching images at: discord.com/developers → your app → Rich Presence → Art Assets
# The key here must match the asset name you uploaded.
python = "python"
javascript = "javascript"
typescript = "typescript"
rust = "rust"
go = "go"
java = "java"
c = "c"
cpp = "cpp"
csharp = "csharp"
html = "html"
css = "css"
scss = "scss"
json = "json"
yaml = "yaml"
toml = "toml"
markdown = "markdown"
shell = "shell"
dockerfile = "docker"
sql = "sql"
lua = "lua"
ruby = "ruby"
php = "php"
swift = "swift"
kotlin = "kotlin"
dart = "dart"
vue = "vue"
svelte = "svelte"
react = "react"
default = "code"