fixed update

This commit is contained in:
2026-06-19 21:40:17 +02:00
parent a157ea5199
commit 3fd3546fca
26 changed files with 323 additions and 26 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
file="$HOME/.local/state/quickshell/user/generated/colors.json"
jq -r 'to_entries[] | "\(.key) \(.value)"' "$file" |
while read -r name hex; do
hex="${hex#\#}"
r=$((16#${hex:0:2}))
g=$((16#${hex:2:2}))
b=$((16#${hex:4:2}))
printf "%-30s " "$name"
printf "\e[48;2;%d;%d;%dm \e[0m " "$r" "$g" "$b"
printf "%s\n" "#$hex"
done
read -n 1