aboutsummaryrefslogtreecommitdiff
path: root/kitty/kitty-themes/.tools/generate_conf.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/generate_conf.sh
downloaddots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.tar.gz
dots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.tar.bz2
dots-57eb70137b5bbcdabdc0f02eea5477b3e5f845a1.zip
Adds Arch Linux dotfiles
Diffstat (limited to 'kitty/kitty-themes/.tools/generate_conf.sh')
-rwxr-xr-xkitty/kitty-themes/.tools/generate_conf.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/kitty/kitty-themes/.tools/generate_conf.sh b/kitty/kitty-themes/.tools/generate_conf.sh
new file mode 100755
index 000000000..db498b9ac
--- /dev/null
+++ b/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