Skip to content

Commit b34ba1a

Browse files
committed
1.6.0 - Swap Lighting
1 parent 13e0aad commit b34ba1a

File tree

7 files changed

+254
-181
lines changed

7 files changed

+254
-181
lines changed

Cargo.lock

Lines changed: 48 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "wooting-profile-switcher"
3-
description = "Automatically switch Wooting keyboard profiles based on focused window"
4-
version = "1.5.3"
3+
description = "WootingProfileSwitcher" # Tauri uses this as the official app name for some reason
4+
version = "1.6.0"
55
authors = ["Shayne Hartford <shaybox@shaybox.com>"]
66
edition = "2021"
77
readme = "README.md"
@@ -11,7 +11,7 @@ license = "MIT"
1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

1313
[build-dependencies]
14-
tauri-build = { version = "1.4", features = [] }
14+
tauri-build = "1.4"
1515

1616
[dependencies]
1717
active-win-pos-rs = "0.8"

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ The config file is generated on first-run in the following location and format
3030
| macOS | `/Users/.../Library/Application Support` |
3131
| Linux | `/home/.../.config` |
3232

33-
```json
33+
```json5
3434
{
3535
// The fallback profile to use when no match is found (optional)
3636
"fallback_profile_index": null,
3737
// Sleep duration for the loop checking the active window
3838
"loop_sleep_ms": 250,
3939
// Sleep duration between sending Wooting USB commands
4040
"send_sleep_ms": 250,
41+
// Swap the lighting effects with the keyboard profile
42+
"swap_lighting": true,
4143
// List of rule objects, all match rules support Wildcard and Regex
4244
"rules": [
4345
{
@@ -47,17 +49,17 @@ The config file is generated on first-run in the following location and format
4749
"process_name": "Isaac",
4850
// Match against the running process path (optional)
4951
"process_path": null,
50-
// The profile to switch to when a match is found for this rule (0-3)
51-
"profile_index": 1,
5252
// Match against the running window title (optional)
53-
"title": null
53+
"title": null,
54+
// The profile to switch to when a match is found for this rule (0-3)
55+
"profile_index": 1
5456
},
5557
{
5658
"app_name": null,
5759
"process_name": "isaac-ng.exe",
5860
"process_path": null,
59-
"profile_index": 2,
60-
"title": null
61+
"title": null,
62+
"profile_index": 2
6163
}
6264
]
6365
}
@@ -67,25 +69,25 @@ The config file is generated on first-run in the following location and format
6769

6870
#### Matching a window title with a date variable
6971

70-
```json
72+
```json5
7173
{
7274
"app_name": null,
7375
"process_name": null,
7476
"process_path": null,
75-
"profile_index": 0,
76-
"title": "VRCX ????.??.??"
77+
"title": "VRCX ????.??.??",
78+
"profile_index": 0
7779
}
7880
```
7981

8082
#### Matching a window title with a version variable
8183

82-
```json
84+
```json5
8385
{
8486
"app_name": null,
8587
"process_name": null,
8688
"process_path": null,
87-
"profile_index": 0,
88-
"title": "Minecraft [\d]+.[\d]+.[\d]+"
89+
"title": "Minecraft [\d]+.[\d]+.[\d]+",
90+
"profile_index": 0
8991
}
9092
```
9193

0 commit comments

Comments
 (0)