forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sofle.sh
executable file
·22 lines (19 loc) · 869 Bytes
/
sofle.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# COMMON_BUILD_COMMANDS='-kb sofle/keyhive -km manna-harbour_miryoku -e MIRYOKU_ALPHAS=QWERTY -e MIRYOKU_EXTRA=COLEMAKDH -e MIRYOKU_TAP=QWERTY -e MIRYOKU_NAV=INVERTEDT -e MIRYOKU_CLIPBOARD=WIN -e MIRYOKU_LAYERS=FLIP'
# COMMON_BUILD_COMMANDS='-kb sofle/keyhive -km manna-harbour_miryoku -e MIRYOKU_ALPHAS=QWERTY -e MIRYOKU_NAV=VI'
COMMON_BUILD_COMMANDS='-kb sofle/keyhive -km rgb_default'
COMPILE="qmk compile $COMMON_BUILD_COMMANDS"
FLASH_LEFT="qmk flash $COMMON_BUILD_COMMANDS -bl dfu-split-left"
FLASH_RIGHT="qmk flash $COMMON_BUILD_COMMANDS -bl avrdude-split-right"
echo "Building sofle."
$COMPILE
if [ -z $1 ] ; then
echo "Pass 'true' if you are trying to flash"
else
echo "Flashing left: Plug in and reset LEFT bootloader."
read
$FLASH_LEFT
echo "Flashing right: Plug in and reset RIGHT bootloader."
read
$FLASH_RIGHT
fi