This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://github.com/dreamsofcode-io/escapecontrol/blob/main/macos/karabiner/caps2esc.json | |
| // https://www.youtube.com/watch?v=XuQVbZ0wENE | |
| { | |
| "description": "Change caps_lock to left_control if pressed with other keys, change caps_lock to escape if pressed alone.", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { | |
| "optional": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| BASEDIR=$(dirname "$0") | |
| file="$BASEDIR/inactivity_count.txt" | |
| if [ ! -e $file ] | |
| then | |
| touch $file | |
| echo 0 > $file |