-
edit keymap on tmk keyboard editor, and download the
layout.hex
file -
get dfu-programmer using apt, or downloading from source and building
Method 1 (APT): sudo apt install dfu-programmer
Method 2 (building from source)
cd ~/install_dir/
wget https://github.com/dfu-programmer/dfu-programmer/archive/refs/tags/v0.7.1.tar.gz
tar -xzf dfu-programmer-0.7.1.tar.gz
cd dfu-programmer/ && ./bootstrap.sh && .configure
make -j24 && sudo make install -j24
-
make sure your keyboard is in bootloader mode keep it plugged, flip it over and press the button
-
flash
sudo dfu-programmer atmega32u4 erase
sudo dfu-programmer atmega32u4 flash layout.hex
sudo dfu-programmer atmega32u4 reset
Afterwards you're good to go