I’ve previously used long chains of if !$(which COMMAND) &>/dev/null to declare and enforce requirements but it never occurred to me to wrap it in a simple function. While writing a short bash script today, it occurred to me that I’ve been handling requirements poorly for years. It’s funny how easy it is to overlook an obvious solution to a trivial problem and keep doing things the slow way for years at a time. Declaring required commands in bash scripts I use it to make caps lock Hyper/Escape and to make h/j/k/l act like Vim arrow keys when I hold down ' ' threelayout. Related topics: MacOS Zsh Dotfiles Autohotkey Git. Language filter: + HTML + AutoHotkey + Shell + Vim Script. The trick is to call JSON.stringify(someArray) and stuff it into the StringValue key in the MessageAttribute object. Open-source projects categorized as karabiner-elements Edit details. #!/bin/sh # Adapted from under CC BY 4.0 set -e PLIST = "/Library/LaunchDaemons/" case $1 in I found some scripts on the Apple Stack Exchange and rewrote them into a shell utility to make it easier to use. Forunately, there’s a CLI for changing user keymappings on MacOS, hidutil. No matter how many times I go through the setup, Karabiner Elements always fails to install its driver on this machine. Until recently I solved this by remapping the offending keys using Karabiner Elements.įast-forward a few years and I’ve got a newer MacBook Pro, circa 2019. The Mac’s default behaviour is to swap the section mark and plus-minus (§, ±) keys with the backtick/tilde key. It thinks it’s ANSI layout (no extra key left of ‘z’) but it’s actually ISO layout (backtick/tidle left of z). Unfortunately, MacOS has never correctly detected the layout of this keyboard. I solved this by buying a Mac-compatible mechanical keyboard from Varmilo. Ian Gilham Ian Gilham Home About Archive Feed Fixing Swapped Tilde Key on MacOSįor the last few years I’ve been using an early 2015 MacBook Pro for work and have sometimes suffered from RSI due in part to the terrible ergonomics of the Magic Keyboard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |