From 618a7d709658ada71730ea3ff33f0ec7fd937c1e Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 17 Feb 2025 02:29:36 +0900 Subject: deleted glove80/00e7ccb1-432d-4c15-a991-48258ad509dd_v25.01_Glorious Engrammer v41.uf2", modified bin/setfirmware, created glove80/284c34b3-9c3a-422d-93e0-d91b4848b8d7_v25.01_Glorious Engrammer v41.uf2 --- ar/.local/bin/setfirmware | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ar/.local/bin/setfirmware') 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" -- cgit v1.2.3