forked from notthebee/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Homer now generates colorschemes from Xresources!
- Loading branch information
Showing
39 changed files
with
232 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
! Dracula Xresources palette | ||
*.foreground: #F8F8F2 | ||
*.background: #282A36 | ||
*.color0: #282A36 | ||
*.color8: #4D4D4D | ||
*.color1: #FF5555 | ||
*.color9: #FF6E67 | ||
*.color2: #50FA7B | ||
*.color10: #5AF78E | ||
*.color3: #F1FA8C | ||
*.color11: #F4F99D | ||
*.color4: #BD93F9 | ||
*.color12: #CAA9FA | ||
*.color5: #FF79C6 | ||
*.color13: #FF92D0 | ||
*.color6: #8BE9FD | ||
*.color14: #9AEDFE | ||
*.color7: #BFBFBF | ||
*.color15: #E6E6E6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
! ----------------------------------------------------------------------------- | ||
! File: gruvbox-dark.xresources | ||
! Description: Retro groove colorscheme generalized | ||
! Author: morhetz <[email protected]> | ||
! Source: https://github.com/morhetz/gruvbox-generalized | ||
! Last Modified: 6 Sep 2014 | ||
! ----------------------------------------------------------------------------- | ||
|
||
! hard contrast: *background: #1d2021 | ||
*background: #1d2021 | ||
! soft contrast: *background: #32302f | ||
*foreground: #ebdbb2 | ||
! Black + DarkGrey | ||
*color0: #282828 | ||
*color8: #928374 | ||
! DarkRed + Red | ||
*color1: #cc241d | ||
*color9: #fb4934 | ||
! DarkGreen + Green | ||
*color2: #98971a | ||
*color10: #b8bb26 | ||
! DarkYellow + Yellow | ||
*color3: #d79921 | ||
*color11: #fabd2f | ||
! DarkBlue + Blue | ||
*color4: #458588 | ||
*color12: #83a598 | ||
! DarkMagenta + Magenta | ||
*color5: #b16286 | ||
*color13: #d3869b | ||
! DarkCyan + Cyan | ||
*color6: #689d6a | ||
*color14: #8ec07c | ||
! LightGrey + White | ||
*color7: #a89984 | ||
*color15: #ebdbb2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
! Copyright (c) 2016-present Arctic Ice Studio <[email protected]> | ||
! Copyright (c) 2016-present Sven Greb <[email protected]> | ||
|
||
! Project: Nord XResources | ||
! Version: 0.1.0 | ||
! Repository: https://github.com/arcticicestudio/nord-xresources | ||
! License: MIT | ||
|
||
#define nord0 #2E3440 | ||
#define nord1 #3B4252 | ||
#define nord2 #434C5E | ||
#define nord3 #4C566A | ||
#define nord4 #D8DEE9 | ||
#define nord5 #E5E9F0 | ||
#define nord6 #ECEFF4 | ||
#define nord7 #8FBCBB | ||
#define nord8 #88C0D0 | ||
#define nord9 #81A1C1 | ||
#define nord10 #5E81AC | ||
#define nord11 #BF616A | ||
#define nord12 #D08770 | ||
#define nord13 #EBCB8B | ||
#define nord14 #A3BE8C | ||
#define nord15 #B48EAD | ||
|
||
*.foreground: nord4 | ||
*.background: nord0 | ||
*.cursorColor: nord4 | ||
*fading: 35 | ||
*fadeColor: nord3 | ||
|
||
*.color0: nord1 | ||
*.color1: nord11 | ||
*.color2: nord14 | ||
*.color3: nord13 | ||
*.color4: nord9 | ||
*.color5: nord15 | ||
*.color6: nord8 | ||
*.color7: nord5 | ||
*.color8: nord3 | ||
*.color9: nord11 | ||
*.color10: nord14 | ||
*.color11: nord13 | ||
*.color12: nord9 | ||
*.color13: nord15 | ||
*.color14: nord7 | ||
*.color15: nord6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#define S_base03 #002b36 | ||
#define S_base02 #073642 | ||
#define S_base01 #586e75 | ||
#define S_base00 #657b83 | ||
#define S_base0 #839496 | ||
#define S_base1 #93a1a1 | ||
#define S_base2 #eee8d5 | ||
#define S_base3 #fdf6e3 | ||
|
||
*background: S_base03 | ||
*foreground: S_base0 | ||
*fadeColor: S_base03 | ||
*cursorColor: S_base1 | ||
*pointerColorBackground:S_base01 | ||
*pointerColorForeground:S_base1 | ||
|
||
#define S_yellow #b58900 | ||
#define S_orange #cb4b16 | ||
#define S_red #dc322f | ||
#define S_magenta #d33682 | ||
#define S_violet #6c71c4 | ||
#define S_blue #268bd2 | ||
#define S_cyan #2aa198 | ||
#define S_green #859900 | ||
|
||
!! black dark/light | ||
*color0: S_base02 | ||
*color8: S_base03 | ||
|
||
!! red dark/light | ||
*color1: S_red | ||
*color9: S_red | ||
|
||
!! green dark/light | ||
*color2: S_green | ||
*color10: S_green | ||
|
||
!! yellow dark/light | ||
*color3: S_yellow | ||
*color11: S_base00 | ||
|
||
!! blue dark/light | ||
*color4: S_blue | ||
*color12: S_base0 | ||
|
||
!! magenta dark/light | ||
*color5: S_magenta | ||
*color13: S_violet | ||
|
||
!! cyan dark/light | ||
*color6: S_cyan | ||
*color14: S_base1 | ||
|
||
!! white dark/light | ||
*color7: S_base2 | ||
*color15: S_base3 |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- name: Install pip | ||
package: | ||
name: python3-pip | ||
state: present | ||
|
||
- name: Install the Xresources parser | ||
pip: | ||
name: xparser | ||
|
||
- name: Install the Xresources file | ||
copy: | ||
dest: "/home/{{ username }}/.Xresources" | ||
src: "files/colorschemes/{{colorscheme | lower }}" | ||
owner: "{{ username }}" | ||
group: "{{ username }}" | ||
|
||
- name: Parse the Xresources file | ||
shell: | ||
cmd: "python3 -c 'import xrp; import json; result = xrp.parse_file(\"/home/{{ username }}/.Xresources\", encoding=\"utf8\"); print(json.dumps(dict(result.resources), indent = 4).replace(\"*.\", \"\").replace(\"*\", \"\"))'" | ||
register: xresources | ||
|
||
- name: Save variables | ||
set_fact: | ||
colors: "{{ xresources.stdout | from_json }}" |