So the application needs to be able to capture and setup custom mappings (for example the very common remapping of Caps Lock to Escape). I want to write a CLI application that lets you setup profiles of custom key maps and to easily switch between them.Ī key map can either be a pre-defined map such as "English" or "Nordic", but it can also be custom. Karabiner-Elements uses some pre-built binaries in the source tree. Note about pre-built binaries in the source tree. I also recently started learning Rust and want to start building all my small apps in Rust for a while to get used to the language. The make script will create a redistributable Karabiner-Elements-VERSION.dmg in the current directory. Ive so far used setxkbmap to switch around keys a bit, but it is a bit clunky. I constantly switching between English and Swedish keyboard setup, as well as a "modified" Swedish setup I call "code", which I use for programming. To easily, and quickly, change between key maps. For example, Cmd+Tab is the usual shortcut for opening the floating app switcher but it is disabled. HOWEVER, the down side is that every one of my previously defined keyboard shortcuts is disabled whenever Karabiner-Elements is running. I just recently moved to Linux from Mac and the one thing I miss the most is the application Karabiner. Using Karabiner-Elements I am able to bind volume and brightness controls to the function keys as expected. TLDR How would one implement a CLI application similar to Karabiner-Elements (Mac) for Linux in Rust? Karabiner Elements is strictly a mac app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |