Skip to content

Commit

Permalink
Added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
halfzebra committed Jul 27, 2023
1 parent 78fe4aa commit 7cc68b8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
# Rust Windows Keyboard Experiment
# Rust Windows Keyboard Experiment

This program is designed to automatically switch your keyboard layout based on the application you are currently using. By providing a configuration file in YAML format, you can specify which keyboard layout should be used for each application. The program will continuously monitor your active window and switch the layout accordingly. This can save you time and effort by eliminating the need to manually switch your layout every time you switch between different applications. Additionally, it can be useful for users who frequently switch between languages and want to avoid accidentally typing in the wrong one.

## Running Locally

Create a config file with language code to app mapping.

```yaml
en-US:
- Code.exe
- steam.exe
- HuntGame.exe
- ubuntu2004.exe
uk-UA:
- Discord.exe
- Telegram.exe
```
Compile the binary or run directly from source:
```bash
cargo run .\mocks\lang.yml
```

## Useful Links
- https://docs.microsoft.com/en-us/windows/win32/intl/language-identifiers
- https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-LCID/%5bMS-LCID%5d.pdf
Expand Down

0 comments on commit 7cc68b8

Please sign in to comment.