summaryrefslogtreecommitdiff
path: root/.config/kitty/kitty-themes/.tools/generate_conf.sh
diff options
context:
space:
mode:
authorIndrajith K L2023-09-08 14:43:41 +0530
committerIndrajith K L2023-09-08 14:43:41 +0530
commit0f144c1ef9d831b1c663ef998f40e22c33156d9e (patch)
treedd20b22ce18b5e6e0b00b43d1b5a2699792563f1 /.config/kitty/kitty-themes/.tools/generate_conf.sh
downloadDotFiles-0f144c1ef9d831b1c663ef998f40e22c33156d9e.tar.gz
DotFiles-0f144c1ef9d831b1c663ef998f40e22c33156d9e.tar.bz2
DotFiles-0f144c1ef9d831b1c663ef998f40e22c33156d9e.zip
Initial CommitHEADmaster
* Adds Basic dot files configs
Diffstat (limited to '.config/kitty/kitty-themes/.tools/generate_conf.sh')
-rwxr-xr-x.config/kitty/kitty-themes/.tools/generate_conf.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/kitty/kitty-themes/.tools/generate_conf.sh b/.config/kitty/kitty-themes/.tools/generate_conf.sh
new file mode 100755
index 0000000..db498b9
--- /dev/null
+++ b/.config/kitty/kitty-themes/.tools/generate_conf.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+find ~/github/macos-terminal-themes/schemes/ -name "*.terminal" -print0 | while read -d $'\0' -r file; do
+ filename=`basename "$file"`
+ without_ext=${filename%.*}
+ removed_spaces=${without_ext// /_}
+ # output_filename=`echo ${removed_spaces} | tr '[:upper:]' '[:lower:]'`
+ echo ${removed_spaces}.conf
+ ./convert_conf.swift "$file" > ./themes/${removed_spaces}.conf
+done