summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-29 21:27:01 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-29 21:27:01 +1000
commit65fd7b89d60c13b5c4f2061d9eb4ff8dd968a503 (patch)
treedaabbde5c54399ca72903073f1452d85060d9fd8
parentb60d9d0d9758982d48272fa5c59fcb4b7e54d8aa (diff)
export: Export the colors in yaml.
-rw-r--r--pywal/export.py1
-rw-r--r--pywal/templates/colors.yml24
2 files changed, 25 insertions, 0 deletions
diff --git a/pywal/export.py b/pywal/export.py
index f727466..abf68ab 100644
--- a/pywal/export.py
+++ b/pywal/export.py
@@ -36,6 +36,7 @@ def get_export_type(export_type):
"scss": "colors.scss",
"shell": "colors.sh",
"xresources": "colors.Xresources",
+ "yml": "colors.yml",
}.get(export_type, export_type)
diff --git a/pywal/templates/colors.yml b/pywal/templates/colors.yml
new file mode 100644
index 0000000..3a9d76d
--- /dev/null
+++ b/pywal/templates/colors.yml
@@ -0,0 +1,24 @@
+wallpaper: "{wallpaper}"
+
+special:
+ background: "{background}"
+ foreground: "{foreground}"
+ cursor: "{cursor}"
+
+colors:
+ color0: "{color0}"
+ color": "{color1}"
+ color2: "{color2}"
+ color3: "{color3}"
+ color4: "{color4}"
+ color5: "{color5}"
+ color6: "{color6}"
+ color7: "{color7}"
+ color8: "{color8}"
+ color9: "{color9}"
+ color10: "{color10}"
+ color11: "{color11}"
+ color12: "{color12}"
+ color13: "{color13}"
+ color14: "{color14}"
+ color15: "{color15}"