https://github.com/shaybox/wooting-profile-switcher
Automatically switch Wooting keyboard profiles based on focused window
https://github.com/shaybox/wooting-profile-switcher
linux macos windows wooting wooting-keyboard wooting-keyboards
Last synced: about 1 month ago
JSON representation
Automatically switch Wooting keyboard profiles based on focused window
- Host: GitHub
- URL: https://github.com/shaybox/wooting-profile-switcher
- Owner: ShayBox
- License: mit
- Created: 2021-05-16T20:20:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-25T00:59:43.000Z (4 months ago)
- Last Synced: 2025-05-08T01:36:34.402Z (about 1 month ago)
- Topics: linux, macos, windows, wooting, wooting-keyboard, wooting-keyboards
- Language: Rust
- Homepage:
- Size: 1.66 MB
- Stars: 70
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wooting Profile Switcher
Automatically switch Wooting keyboard profiles based on focused window
## Installation
[Download the latest release](https://github.com/ShayBox/Wooting-Profile-Switcher/releases/latest)
You must install and run [Wootility](https://wooting.io/wootility) once, but must not have it running at the same time.
## Screenshots

## System Tray Icon
The system tray icon allows you to pause/resume, reload, quit, and set the active profile
## Configuration
The config file is generated on first-run in the following location and format
| Platform | Location |
| -------- | ---------------------------------------- |
| Portable | Same location as the binary |
| Windows | `C:\Users\...\AppData\Roaming` |
| macOS | `/Users/.../Library/Application Support` |
| Linux | `/home/.../.config` |```json5
{
// Auto launch at startup
"auto_launch": null,
// Auto update at startup
"auto_update": null,
// List of connected devices, their serial number properties, and profile names
"devices": {
"A02B2106W031H00418": {
"model_name": "Wooting Two LE",
"supplier": 2,
"year": 21,
"week": 6,
"product": 3,
"revision": 1,
"product_id": 418,
"production": true,
"profiles": [
"Typing Profile",
"Rapid Profile",
"Racing Profile",
"Mixed Movement"
]
}
},
// Sleep duration for the loop checking the active window
"loop_sleep_ms": 250,
// Sleep duration between sending Wooting USB commands
"send_sleep_ms": 250,
// Show the serial number instead of the model name
"show_serial": false,
// Swap the lighting effects with the keyboard profile
"swap_lighting": true,
// List of rule objects, all match rules support Wildcard and Regex
"rules": [
{
"alias": "The Binding of Isaac",
"device_indices": {
"A02B2106W031H00418": 0
},
"match_app_name": null,
"match_bin_name": null,
"match_bin_path": "C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth*",
"match_win_name": null
},
{
"alias": "Default Fallback",
"device_indices": {
"A02B2106W031H00418": 0
},
"match_app_name": "*",
"match_bin_name": "*",
"match_bin_path": "*",
"match_win_name": "*"
}
],
"ui": {
"scale": 1.25,
"theme": "Dark"
}
}
```### Examples:
#### Matching a window title with a date variable
```json5
{
"alias": "VRCX",
"match_app_name": null,
"match_bin_name": null,
"match_bin_path": null,
"match_win_name": "VRCX ????.??.??",
"device_indices": {
"A02B2106W031H00418": 0
},
}
```#### Matching a window title with a version variable
```json5
{
"alias": "Minecraft",
"match_app_name": null,
"match_bin_name": null,
"match_bin_path": null,
"match_win_name": "Minecraft [\d]+.[\d]+.[\d]+",
"device_indices": {
"A02B2106W031H00418": 0
},
}
```#### Wayland Support
This program does not officially support Wayland.
This is because most compositors don't support the `foreign-toplevel-management` protocol.
There's no way for programs to detect the active focused Wayland window, only X11 / Xwayland.
The version of Tauri (`tauri-egui`) this program uses didn't yet support Wayland either, so the window doesn't appear.
You can use this program to detect Xwayland windows headlessly using only the config and tray icon, but it's not great.