diff options
author | Indrajith K L | 2023-09-08 14:43:41 +0530 |
---|---|---|
committer | Indrajith K L | 2023-09-08 14:43:41 +0530 |
commit | 0f144c1ef9d831b1c663ef998f40e22c33156d9e (patch) | |
tree | dd20b22ce18b5e6e0b00b43d1b5a2699792563f1 /.config/kitty/kitty-themes/.tools/extract-vscode.sh | |
download | DotFiles-master.tar.gz DotFiles-master.tar.bz2 DotFiles-master.zip |
* Adds Basic dot files configs
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" |