Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shengjie-chen/ba434a63c89ad8b081afee348db2f81c to your computer and use it in GitHub Desktop.
Save shengjie-chen/ba434a63c89ad8b081afee348db2f81c to your computer and use it in GitHub Desktop.
Activity Watch的任务分类规则,适配我个人的工作习惯和使用的应用
{
"categories": [
{
"name": [
"Work"
],
"rule": {
"type": "regex",
"regex": "MathType|Excel|远程桌面连接|计算器|visio|WPS|vivado|siyuan|explorer.exe|IDM|vmware|Ditto|chrome|localsend_app|TencentDocs|word|SunloginClient|ppt|xilinx",
"ignore_case": true
},
"data": {
"color": "#0F0"
},
"id": 0
},
{
"name": [
"Work",
"Programming"
],
"rule": {
"type": "regex",
"regex": "GitHub|Stack Overflow|BitBucket|Gitlab|vim|Spyder|Visual Studio Code"
},
"id": 1,
"data": {}
},
{
"name": [
"Work",
"Image/video"
],
"rule": {
"type": "regex",
"regex": "photoshop|jianying",
"ignore_case": true
},
"id": 2,
"data": {}
},
{
"name": [
"Media",
"Games"
],
"rule": {
"type": "regex",
"regex": "Minecraft"
},
"data": {
"color": "#F80"
},
"id": 3
},
{
"name": [
"Media",
"Video"
],
"rule": {
"type": "regex",
"regex": "YouTube|bilibili|ntdm9.com|PotPlayer|哔哩哔哩",
"ignore_case": true
},
"data": {
"color": "#AEA1FF"
},
"id": 4
},
{
"name": [
"Media",
"Social Media"
],
"rule": {
"type": "regex",
"regex": "reddit|Facebook|Twitter|Instagram|xiaohongshu",
"ignore_case": true
},
"data": {
"color": "#FCC400"
},
"id": 5
},
{
"name": [
"Media",
"Music"
],
"rule": {
"type": "regex",
"regex": "QQMusic",
"ignore_case": true
},
"data": {
"color": "#FDA1FF"
},
"id": 6
},
{
"name": [
"Comms"
],
"rule": {
"type": "none"
},
"data": {
"color": "#9FF"
},
"id": 7
},
{
"name": [
"Comms",
"IM"
],
"rule": {
"type": "regex",
"regex": "Telegram|Discord|WeChat|QQ",
"ignore_case": true
},
"id": 8,
"data": {}
},
{
"name": [
"Comms",
"Email"
],
"rule": {
"type": "regex",
"regex": "Gmail|126.com|qq.com",
"ignore_case": true
},
"id": 9,
"data": {}
},
{
"name": [
"Uncategorized"
],
"rule": {
"type": "none"
},
"data": {
"color": "#CCC"
},
"id": 10
},
{
"name": [
"Media"
],
"rule": {
"type": "none"
},
"id": 11,
"data": {
"color": "#F44E3B"
}
},
{
"name": [
"Work",
"Other"
],
"rule": {
"type": "regex",
"regex": "Notepad"
},
"id": 12,
"data": {}
},
{
"name": [
"Work",
"TimeManager"
],
"rule": {
"type": "regex",
"regex": "TickTick|ActivityWatch",
"ignore_case": true
},
"id": 13,
"data": {
"color": "#68BC00"
}
},
{
"name": [
"Work",
"Meeting"
],
"rule": {
"type": "regex",
"regex": "wemeetapp",
"ignore_case": true
},
"id": 14,
"data": {}
},
{
"name": [
"Work",
"study"
],
"rule": {
"type": "regex",
"regex": "一生一芯|哔哩哔哩.exe|eudic"
},
"id": 15,
"data": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment