From 28e8bdf7f8286bd431b7f3b709e79f3827b31469 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 24 Dec 2025 13:54:03 +0900 Subject: updates --- debian/.local/bin/iconupdate | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 debian/.local/bin/iconupdate (limited to 'debian/.local/bin/iconupdate') diff --git a/debian/.local/bin/iconupdate b/debian/.local/bin/iconupdate new file mode 100755 index 0000000..0a1aebb --- /dev/null +++ b/debian/.local/bin/iconupdate @@ -0,0 +1,19 @@ +#!/bin/bash + +icons="${XDG_DOTFILES_DIR:-$HOME/.dotfiles}/global/.local/share/thesiah/chars/icons" +tmpfile="$(mktemp)" + +curl -sSL -o "$tmpfile" "https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/metadata/icons.json" || exit 1 + +while read -r hex name; do + hex_uc=$(printf '%s' "$hex" | tr '[:lower:]' '[:upper:]') + if [[ ${#hex_uc} -le 4 ]]; then + unicode="\\u$hex_uc" + else + unicode="\\U$(printf '%08X' "0x$hex_uc")" + fi + printf "%b %s; %s\n" "$unicode" "$name" "$hex" +done < <(jq -r 'to_entries[] | select(.value.unicode) | .value.unicode + " " + .key' "$tmpfile") >"$icons" + +rm -f "$tmpfile" +echo "Processing complete! icons saved to: $icons" -- cgit v1.2.3