aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Rohit Goswami <rgoswami@ieee.org>2020-12-27 18:11:21 +0000
committerLibravatar Rohit Goswami <rgoswami@ieee.org>2020-12-27 18:11:21 +0000
commit390f0b2389a3b636165044de0481dff8f0657570 (patch)
tree0bdb0b237f0cadebcf9fe7de3113e468febb7163
parent89f01a52fbe558dc400f1abd8b5e8a5620789619 (diff)
parent34e5a16dac5ddbd7764fcbefaa3340002abec0e5 (diff)
Merge branch 'master' of github.com:HaoZeke/base16-zathura
-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}}"