summaryrefslogtreecommitdiff
path: root/data/config.json
blob: 1efe9e440d608af10a25d1b6827bc9c7a5a951eb (plain)
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
{
    "toggles": {
        "communication": {
            "apps": [
                {
                    "selector": ".class == \"equibop\"",
                    "spawn": "equibop",
                    "action": "spawn move"
                },
                {
                    "selector": ".class == \"whatsapp\"",
                    "spawn": "firefox --name whatsapp -P whatsapp 'https://web.whatsapp.com'",
                    "action": "move",
                    "extraCond": "grep -q 'Name=whatsapp' ~/.mozilla/firefox/profiles.ini"
                }
            ]
        },
        "music": {
            "apps": [
                {
                    "selector": ".class == \"Spotify\" or .initialTitle == \"Spotify\" or .initialTitle == \"Spotify Free\"",
                    "spawn": "spotify-adblock.desktop",
                    "action": "spawn move"
                },
                {
                    "selector": ".class == \"feishin\"",
                    "spawn": "feishin",
                    "action": "move"
                }
            ]
        },
        "sysmon": {
            "apps": [
                {
                    "selector": ".class == \"btop\" and .title == \"btop\" and .workspace.name == \"special:sysmon\"",
                    "spawn": "foot -a 'btop' -T 'btop' -- btop",
                    "action": "spawn"
                }
            ]
        },
        "todo": {
            "apps": [
                {
                    "selector": ".class == \"Todoist\"",
                    "spawn": "todoist",
                    "action": "spawn move"
                }
            ]
        }
    }
}