-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
54 lines (54 loc) · 2.09 KB
/
Copy pathconfig.json
File metadata and controls
54 lines (54 loc) · 2.09 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
{
"monitors": {
"primary": 1,
"secondary": 2
},
"audio": {
"device1": "Speakers",
"device2": "TV"
},
"paths": {
"monitorLog": "./SwapMonitorsLog.txt"
},
"notifications": {
"enabled": true,
"monitorMessage": "Switched display to monitor {0}",
"audioMessage": "Switched audio device to {0}"
},
"redrawTaskbar": {
"_comment": "Set to true if taskbar does not redraw correctly after monitor swap",
"enabled": true
},
"windowCustomizations": {
"enabled": true,
"rules": [
{
"findMethod": "Process",
"findValue": "Discord.exe",
"monitor": 3,
"command": "if ($customization.findValue -eq 'Discord.exe') { & nircmd.exe win max process 'Discord.exe'; & Write-Host 'Discord maximized' }"
},
{
"findMethod": "Title",
"findValue": "WhatsApp",
"monitor": 4,
"_comment":"if WhatsApp, make normal, activate, and resize to right half of screen",
"command": "if ($customization.findValue -eq 'WhatsApp') { & nircmd.exe win normal ititle 'WhatsApp'; & nircmd.exe win activate ititle 'WhatsApp'; & nircmd.exe win setsize ititle 'WhatsApp' -1287 0 1294 1039; & Write-Host 'WhatsApp snapped to right' }"
},
{
"findMethod": "Title",
"findValue": "Windows PowerShell",
"monitor": 1,
"_comment":"",
"command": "if ($customization.findValue -eq 'Windows PowerShell') { & nircmd.exe win normal ititle 'Windows PowerShell'; & Write-Host 'PowerShell window normal' }"
},
{
"findMethod": "Class",
"findValue": "CabinetWClass",
"monitor": 1,
"_comment":"",
"command": "if ($customization.findValue -eq 'CabinetWClass') { & nircmd.exe win normal etitle 'File Explorer'; & Write-Host 'File Explorer window normal' }"
}
]
}
}