Skip to content

Instantly share code, notes, and snippets.

@tobynet
Created December 9, 2017 05:47
Show Gist options
  • Save tobynet/fbaaa40a265aec2b561ffe2a39f3dd54 to your computer and use it in GitHub Desktop.
Save tobynet/fbaaa40a265aec2b561ffe2a39f3dd54 to your computer and use it in GitHub Desktop.
Watch your code for keymaps and compile qmk firmware with inotifywait command.
#!/bin/env bash
# ref. https://github.com/rvoicilas/inotify-tools/wiki#inotifywait
# ref. inotifywait --help
cd qmk_firmware
while inotifywait --recursive --event modify \
keyboards/lets_split/keymaps/j3/ ; do
make lets_split/rev2:j3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment