You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash# Create a unique timestamped folder in /tmp
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
TEMP_DIR="/tmp/firmware_$TIMESTAMP"
mkdir $TEMP_DIR# Step 1: Download and unzip firmware files to the unique timestamped folder
wget -P $TEMP_DIR https://github.com/renxida/zmk-config/releases/download/latest/lily58_left-nice_nano_v2-zmk.uf2
wget -P $TEMP_DIR https://github.com/renxida/zmk-config/releases/download/latest/lily58_right-nice_nano_v2-zmk.uf2
# Step 2: Ensure NICENANO exists before proceeding with the copywhile [ !-d"/media/$USER/NICENANO" ];doecho"Please plug in and reset the left half of the keyboard."
sleep 1
done# Copy the *left-nice_nano*.uf2 file
cp $TEMP_DIR/*left-nice_nano*.uf2 "/media/$USER/NICENANO/"# Step 3: Wait for /media/$USER/NICENANO to disappearwhile [ -d"/media/$USER/NICENANO" ];do
sleep 1
done# Prompt the user to plug in and reset the right half of the keyboard# Step 4: Wait for /media/$USER/NICENANO to reappearwhile [ !-d"/media/$USER/NICENANO" ];doecho"Please plug in and reset the right half of the keyboard."
sleep 1
done# Step 5: Copy the *right-nice_nano*.uf2 file
cp $TEMP_DIR/*right-nice_nano*.uf2 "/media/$USER/NICENANO/"# Step 6: Cleanup
rm -rf $TEMP_DIRecho"Script executed successfully."
The text was updated successfully, but these errors were encountered:
I have a custom version of this repo that:
It would be very nice if we could include these by default with the repo... It took me a while to figure all of this out on my own.
Here's my
.github/workflows/build.yml
:And here's my
flashkbd.sh
The text was updated successfully, but these errors were encountered: