aboutsummaryrefslogtreecommitdiff
path: root/kitty/kitty-themes/.tools/extract-vscode.sh
diff options
context:
space:
mode:
authorIndrajith K L2024-06-27 17:51:18 +0530
committerIndrajith K L2024-06-27 17:51:18 +0530
commit57eb70137b5bbcdabdc0f02eea5477b3e5f845a1 (patch)
treee78187146c506d5a640545dee99cc3e9860e25dc /kitty/kitty-themes/.tools/extract-vscode.sh
downloaddots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.tar.gz
dots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.tar.bz2
dots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.zip
Adds Arch Linux dotfiles
Diffstat (limited to 'kitty/kitty-themes/.tools/extract-vscode.sh')
-rwxr-xr-xkitty/kitty-themes/.tools/extract-vscode.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/kitty/kitty-themes/.tools/extract-vscode.sh b/kitty/kitty-themes/.tools/extract-vscode.sh
new file mode 100755
index 000000000..71a69305d
--- /dev/null
+++ b/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"