summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-01-04 21:31:55 +0200
committerGitHub <noreply@github.com>2019-01-04 21:31:55 +0200
commitaecb848283c96d66206c31a08f93124bf46827ca (patch)
treef4c8ffae707421dbc39edd64f99aa360f6a5f71d
parentaabbb87ebe8577efbbea13ef4fec0965bd56a06d (diff)
parentfd6820db832ab7b859536b9871dd0d9b00a50627 (diff)
Merge pull request #354 from sraysmith/master
In regards to Request: add xmonad instructions #172
-rw-r--r--pywal/export.py1
-rw-r--r--pywal/templates/colors.hs37
2 files changed, 38 insertions, 0 deletions
diff --git a/pywal/export.py b/pywal/export.py
index 833912d..7b8e58b 100644
--- a/pywal/export.py
+++ b/pywal/export.py
@@ -48,6 +48,7 @@ def get_export_type(export_type):
"tty": "colors-tty.sh",
"xresources": "colors.Xresources",
"yaml": "colors.yml",
+ "xmonad": "colors.hs",
}.get(export_type, export_type)
diff --git a/pywal/templates/colors.hs b/pywal/templates/colors.hs
new file mode 100644
index 0000000..6ffa1a6
--- /dev/null
+++ b/pywal/templates/colors.hs
@@ -0,0 +1,37 @@
+--Place this file in your .xmonad/lib directory and import module Colors into .xmonad/xmonad.hs config
+--The easy way is to create a soft link from this file to the file in .xmonad/lib using ln -s
+--Then recompile and restart xmonad.
+
+module Colors
+ ( wallpaper
+ , background, foreground, cursor
+ , color0, color1, color2, color3, color4, color5, color6, color7
+ , color8, color9, color10, color11, color12, color13, color14, color15
+ ) where
+
+-- Shell variables
+-- Generated by 'wal'
+wallpaper="{wallpaper}"
+
+-- Special
+background="{background}"
+foreground="{foreground}"
+cursor="{cursor}"
+
+-- Colors
+color0="{color0}"
+color1="{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}"