summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ar/.config/glove80/284c34b3-9c3a-422d-93e0-d91b4848b8d7_v25.01_Glorious Engrammer v41.uf2 (renamed from ar/.config/glove80/00e7ccb1-432d-4c15-a991-48258ad509dd_v25.01_Glorious Engrammer v41.uf2)bin1044992 -> 1046528 bytes
-rwxr-xr-xar/.local/bin/setfirmware6
2 files changed, 4 insertions, 2 deletions
diff --git a/ar/.config/glove80/00e7ccb1-432d-4c15-a991-48258ad509dd_v25.01_Glorious Engrammer v41.uf2 b/ar/.config/glove80/284c34b3-9c3a-422d-93e0-d91b4848b8d7_v25.01_Glorious Engrammer v41.uf2
index 29aa411..ff8bd53 100644
--- a/ar/.config/glove80/00e7ccb1-432d-4c15-a991-48258ad509dd_v25.01_Glorious Engrammer v41.uf2
+++ b/ar/.config/glove80/284c34b3-9c3a-422d-93e0-d91b4848b8d7_v25.01_Glorious Engrammer v41.uf2
Binary files differ
diff --git a/ar/.local/bin/setfirmware b/ar/.local/bin/setfirmware
index dde4d58..464cfcc 100755
--- a/ar/.local/bin/setfirmware
+++ b/ar/.local/bin/setfirmware
@@ -4,8 +4,10 @@ lsblk
drive=$(lsblk | grep -E '3[0-9].*M' | cut -d' ' -f1)
drive="/dev/$drive"
printf "\n%s\n" "Target drive: $drive"
-firmwarepath="${XDG_CONFIG_HOME:-${HOME}/.config}/glove80"
-firmware="$(find "$firmwarepath" \( -type f -o -type l \) -iname '*.uf2' | fzf --prompt "Choose a firmware: ")"
+firmwarepath="${XDG_DOTFILES_DIR:-${HOME}/.dotfiles}/$(whereami)/.config/glove80"
+newfirmware="$(find "${XDG_DOWNLOAD_DIR:-${HOME}/Downloads}" -type f -iname '*.uf2')"
+cp "$newfirmware" "$firmwarepath/"
+firmware="$(find "$firmwarepath" -type f -iname '*.uf2' | fzf --prompt "Choose a firmware: ")"
mp="/media/$USER/firmware"
[ -d "$mp" ] || mkdir -p "$mp"
sudo -A mount "$drive" "$mp"