diff options
Diffstat (limited to '.config/kitty/kitty-themes/.tools/extract-vscode.sh')
-rwxr-xr-x | .config/kitty/kitty-themes/.tools/extract-vscode.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/kitty/kitty-themes/.tools/extract-vscode.sh b/.config/kitty/kitty-themes/.tools/extract-vscode.sh new file mode 100755 index 0000000..71a6930 --- /dev/null +++ b/.config/kitty/kitty-themes/.tools/extract-vscode.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +theme=$1 + +jq ".colors | to_entries | map(select(.key | match(\"terminal.*\"))) | map({(.key | gsub(\"\\\\.(?<a>.)\"; .a | ascii_upcase) | ltrimstr(\"terminal\") | sub(\"(?<a>.)\"; .a | ascii_downcase)):.value}) | add" < "$theme" > "terminal/${theme%.*}.json" |