Merge pull request #354 from sraysmith/master

In regards to Request: add xmonad instructions #172
This commit is contained in:
Dylan Araps 2019-01-04 21:31:55 +02:00 committed by GitHub
commit aecb848283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -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)

37
pywal/templates/colors.hs Normal file
View File

@ -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}"