Skip to content

Emulate Windows' "Use Toggle Keys" for Karabiner-Elements.

License

Notifications You must be signed in to change notification settings

arihid/EmulateUseToggleKeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Emulate "Use Toggle Keys" on MacOS

Emulate Windows' "Use Toggle Keys" -play beep sound when caps lock/num lock is pressed- for Karabiner-Elements. Useful for users who want to be warned when caps/num lock key is pressed. I haven't implemented it for scroll lock key because I don't have the physical key for that. You can manually override this rule by editing the json file.

Features

You may choose one of the three flavours:

  • Play beep sound when caps/num lock is pressed.
  • Show notification toast when caps/num lock is pressed.
  • Play beep sound and notification toast when caps/num lock is pressed.

Dependency

  1. For rule #1
  • ffmpeg library for playing sound, installed in /usr/local/bin.
  • The beep sound itself. You'll need to save it in "~/.beep.mp3".
  1. For rule #2 and #3

    No dependency. I used sound name property from display notification instead of playing an external file. I've set it to "", if you want to change the sound, you can declare a sound name located in System/Library/Sounds. For example: sound name "Frog".

Installation

  1. Manual installation

    Download the json file from this repository and save it in ~/.config/karabiner/assets/complex_modifications. Then you can load this rule under "Complex modification" screen in Karabiner-Elements.

Contributing

Contributions are always welcome!

You can post issues or do a pull request to contribute. As I am not a programmer, I'll always welcome every idea.

Acknowledgements

About

Emulate Windows' "Use Toggle Keys" for Karabiner-Elements.

Resources

License

Stars

Watchers

Forks