Skip to content

Commit

Permalink
add readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tyan-boot committed Nov 21, 2019
1 parent c68f9d0 commit 514aca0
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# MuteAssistant

A tool to mute your microphone using keyboard hotkey.

# Download
Download pre-compiled binary from [release](https://github.com/tyan-boot/MuteAssistant/releases)

# Config
To use this tool, you must create a config file named `config.json` and place it with the same directory as binary.

__example config with hotkey `ALT+1`.__

```json
{
"mods": ["0x1"],
"key": "0x31"
}
```

__example config with hotkey `CTRL+ALT+1`.__

```json
{
"mods": ["0x1", "0x2"],
"key": "0x31"
}
```

`mods` is an array of modifiers keys, which values can be:

| value | key |
| ------ | ----------- |
| 0x0001 | ALT key |
| 0x0002 | CTRL key |
| 0x0004 | SHIFT key |
| 0x0008 | WINDOWS key |

`key` is the virtual-key code of the hot key, which can be found in [Virtual Key
Codes](https://docs.microsoft.com/zh-cn/windows/win32/inputdev/virtual-key-codes)

# Todo
- [ ] Monitor default capture device change.
- [ ] GUI
- [ ] Toast to show mute state.

# Motivation
When i was using ThinkPad, there is a special fn key in keyboard to mute microphone and a led indicates mute state.
It's useful when you want to mute microphone temporarily but don't want to switch to voice chat program, e.g. discord.

And now i switch from ThinkPad to Surface, it lacks such a convenient key to mute microphone, so i wrote `MuteAssistant`.

0 comments on commit 514aca0

Please sign in to comment.