aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Rohit Goswami <r95g10@gmail.com>2020-06-26 09:10:44 +0000
committerLibravatar GitHub <noreply@github.com>2020-06-26 09:10:44 +0000
commit7c276e53401903fda57c52628e0cfb67e70bbdda (patch)
treeaaf9bdfbd263ec7f3efb64c2d39a4af38245c9b1
parent096d7f4f804534b97eed88db84806b8e5d20041e (diff)
parent1f4778d44c7bd0a1480ac6de94a7c425b151869b (diff)
Merge pull request #2 from Qu4tro/master
Add recolor template build
-rw-r--r--.gitignore1
-rw-r--r--Makefile7
-rw-r--r--templates/config.yaml6
-rw-r--r--templates/recolor.mustache32
4 files changed, 42 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 01e3d91..c6a8963 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ templates/*
!/templates/config.yaml
!/templates/default.mustache
+!/templates/recolor.mustache
diff --git a/Makefile b/Makefile
index 42e12b0..0636fe0 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
BUILD=pybase16
REPO=$(shell pwd)
TEMPLATE=$(shell basename ${REPO})
-THEME_DIR=build_schemes
+BUILD_DIR=build_schemes
TEMPLATE_DIR=templates
OUTPUT=output
@@ -15,8 +15,9 @@ update:
build:
$(BUILD) build -t ${REPO} -o ${OUTPUT}
- rm -rf ${THEME_DIR}
- mv ${OUTPUT}/${TEMPLATE}/${THEME_DIR}/ ${THEME_DIR}/
+ rm -rf ${BUILD_DIR}
+ mkdir ${BUILD_DIR}
+ cat templates/config.yaml | grep output | cut -d' ' -f6 | xargs -L1 -I {} mv ${OUTPUT}/${TEMPLATE}/{}/ ${BUILD_DIR}/
clean:
rm -rf ${OUTPUT} ${TEMPLATE_DIR}/*/
diff --git a/templates/config.yaml b/templates/config.yaml
index f7331ce..02e20b8 100644
--- a/templates/config.yaml
+++ b/templates/config.yaml
@@ -1,3 +1,7 @@
default:
extension: .config
- output: build_schemes
+ output: colors
+
+recolor:
+ extension: .config
+ output: recolors
diff --git a/templates/recolor.mustache b/templates/recolor.mustache
new file mode 100644
index 0000000..569aa29
--- /dev/null
+++ b/templates/recolor.mustache
@@ -0,0 +1,32 @@
+# Base16 {{scheme-name}}
+# Author: {{scheme-author}}
+
+set default-bg "#{{base00-hex}}"
+set default-fg "#{{base01-hex}}"
+
+set statusbar-fg "#{{base04-hex}}"
+set statusbar-bg "#{{base02-hex}}"
+
+set inputbar-bg "#{{base00-hex}}"
+set inputbar-fg "#{{base07-hex}}"
+
+set notification-bg "#{{base00-hex}}"
+set notification-fg "#{{base07-hex}}"
+
+set notification-error-bg "#{{base00-hex}}"
+set notification-error-fg "#{{base08-hex}}"
+
+set notification-warning-bg "#{{base00-hex}}"
+set notification-warning-fg "#{{base08-hex}}"
+
+set highlight-color "#{{base0A-hex}}"
+set highlight-active-color "#{{base0D-hex}}"
+
+set completion-bg "#{{base01-hex}}"
+set completion-fg "#{{base0D-hex}}"
+
+set completion-highlight-fg "#{{base07-hex}}"
+set completion-highlight-bg "#{{base0D-hex}}"
+
+set recolor-lightcolor "#{{base00-hex}}"
+set recolor-darkcolor "#{{base06-hex}}"