An open API service indexing awesome lists of open source software.

https://github.com/hrvach/yubikill

Disable YubiKey output on MacOS without a modifier key pressed
https://github.com/hrvach/yubikill

2fa karabiner macos osx token yubikey

Last synced: 3 months ago
JSON representation

Disable YubiKey output on MacOS without a modifier key pressed

Awesome Lists containing this project

README

          

# YubiKill

### tl;dr
Karabiner Elements .json file to enable YubiKey output only with a modifier key (caps lock) pressed. This prevents you chatting to people fjsdjhkjahsdkjahslkjsdhgskjdvnskdbvsjkdb.

### Installing

1. Install [Karabiner Elements](https://karabiner-elements.pqrs.org)

2. Enable modifying YubiKey output in preferences

![Modifying YubiKey Output](img/yubi-switch.png)

3. Make sure your VID/PID for the Yubikey (above) match those in the JSON file.

4. Copy the yubi.json file to your ~/.config/karabiner/assets/complex_modifications

5. Add the modifications under "complex modifications" in preferences

![Complex Modifications](img/complex-options.png)

6. Make sure both are enabled

![Options](img/options.png)

7. Profit!

- Caps Lock + yubikey = sliqmnoianwiiwmdoqnsknfoisjjd
- Yubikey alone = ignored

### FAQ

1. Does this kill my caps lock?

- Yes.

2. It doesn't work.

- Fix VID/PID in the JSON file.
- Add checkbox to modify output from yubikey in Karabiner
- Check if Karabiner works in the first place

### Credits

- https://gist.github.com/simonw/
- https://github.com/pqrs-org/Karabiner-Elements/issues/2316#issue-634843704