forked from extern/StartTree
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
527a1a8712 |
@ -15,6 +15,9 @@ A terminal-style home page replicating the tree command.
|
|||||||
- [ ] Install the update script into a `$PATH` directory
|
- [ ] Install the update script into a `$PATH` directory
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
font_size: 15
|
||||||
|
theme: void
|
||||||
|
|
||||||
Tree_1:
|
Tree_1:
|
||||||
General:
|
General:
|
||||||
Google: "https://www.google.com/"
|
Google: "https://www.google.com/"
|
||||||
@ -23,3 +26,9 @@ Tree_1:
|
|||||||
Homepage: "https://www.reddit.com/"
|
Homepage: "https://www.reddit.com/"
|
||||||
Unixporn: "https://www.reddit.com/r/unixporn/"
|
Unixporn: "https://www.reddit.com/r/unixporn/"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Themes
|
||||||
|
|
||||||
|
A variety of themes can be found in the `themes` directory.
|
||||||
|
|
||||||
|
If one wishes to dynamically theme from `pywal`, they may select `pywal` as their chosen theme in `config.yaml`.
|
||||||
|
16
config.yaml
16
config.yaml
@ -1,14 +1,22 @@
|
|||||||
font_size: 22
|
Tree_1:
|
||||||
tree_1:
|
|
||||||
general:
|
general:
|
||||||
github: "https://www.github.com/"
|
nextcloud: "https://cloud.paulhouser.xyz/"
|
||||||
|
github: "https://www.github.com/Paul-Houser/"
|
||||||
|
wwu-gitlab: "https://gitlab.cs.wwu.edu/"
|
||||||
gmail: "https://mail.google.com/"
|
gmail: "https://mail.google.com/"
|
||||||
reddit:
|
reddit:
|
||||||
frontpage:
|
frontpage:
|
||||||
- "https://www.reddit.com/"
|
- "https://www.reddit.com/"
|
||||||
- "front page"
|
- "front page"
|
||||||
|
profile: "https://www.reddit.com/u/P_swizzles/"
|
||||||
unixporn: "https://www.reddit.com/r/unixporn/"
|
unixporn: "https://www.reddit.com/r/unixporn/"
|
||||||
tree_2:
|
archlinux: "https://www.reddit.com/r/archlinux/"
|
||||||
|
Tree_2:
|
||||||
|
school:
|
||||||
|
canvas: "https://wwu.instructure.com/"
|
||||||
|
degreeworks: "https://dw.wwu.edu/Dashboard/dashboard"
|
||||||
|
outlook: "https://outlook.office.com"
|
||||||
|
web4u: "https://admin.wwu.edu/pls/wwis/twbkwbis.P_GenMenu?name=bmenu.P_MainMnu"
|
||||||
other:
|
other:
|
||||||
archwiki:
|
archwiki:
|
||||||
- "https://archlinux.org/"
|
- "https://archlinux.org/"
|
||||||
|
37
install.py
37
install.py
@ -56,18 +56,17 @@ def gen_col_headers(html_file, file_dict):
|
|||||||
|
|
||||||
def gen_columns(html_file, file_dict):
|
def gen_columns(html_file, file_dict):
|
||||||
for key in file_dict:
|
for key in file_dict:
|
||||||
if key == "tree":
|
html_file.write("<div class=\"column\">\n")
|
||||||
html_file.write("<div class=\"column\">\n")
|
html_file.write(" <div class=\"tree\">\n")
|
||||||
html_file.write(" <div class=\"tree\">\n")
|
html_file.write(" <h1>.</h1>\n")
|
||||||
html_file.write(" <h1>.</h1>\n")
|
html_file.write(" <ul>\n")
|
||||||
html_file.write(" <ul>\n")
|
|
||||||
|
|
||||||
# generate the column headers
|
# generate the column headers
|
||||||
gen_col_headers(html_file, file_dict[key])
|
gen_col_headers(html_file, file_dict[key])
|
||||||
|
|
||||||
html_file.write(" </ul>\n")
|
html_file.write(" </ul>\n")
|
||||||
html_file.write(" </div>\n")
|
html_file.write(" </div>\n")
|
||||||
html_file.write("</div>\n")
|
html_file.write("</div>\n")
|
||||||
|
|
||||||
|
|
||||||
def gen_html(file_dict):
|
def gen_html(file_dict):
|
||||||
@ -99,27 +98,13 @@ def gen_html(file_dict):
|
|||||||
|
|
||||||
print("Done!")
|
print("Done!")
|
||||||
|
|
||||||
def gen_style(file_dict):
|
|
||||||
skeleton_style = open('./skeletons/style.css', 'r')
|
|
||||||
cache_style = open(cache_dir + '/styles/style.css', 'w')
|
|
||||||
|
|
||||||
font_size = 20
|
def gen_css(file_dict):
|
||||||
for key in file_dict:
|
|
||||||
if key == "font_size":
|
|
||||||
font_size = file_dict[key]
|
|
||||||
break
|
|
||||||
|
|
||||||
lines = skeleton_style.readlines()
|
|
||||||
for line in lines:
|
|
||||||
if line == "/* font-size */\n":
|
|
||||||
cache_style.write("font-size: " + str(font_size) + "px;\n")
|
|
||||||
else:
|
|
||||||
cache_style.write(line)
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
file_dict = parse_yaml()
|
file_dict = parse_yaml()
|
||||||
gen_style(file_dict)
|
|
||||||
gen_html(file_dict)
|
gen_html(file_dict)
|
||||||
|
gen_css(file_dict)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
/* font-size */
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
24
themes/void.css
Normal file
24
themes/void.css
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
:root {
|
||||||
|
/* Special */
|
||||||
|
--background: #06070A;
|
||||||
|
--foreground: #79c4c6;
|
||||||
|
--cursor: #79c4c6;
|
||||||
|
|
||||||
|
/* Colors */
|
||||||
|
--color0: #06070A;
|
||||||
|
--color1: #175564;
|
||||||
|
--color2: #066C71;
|
||||||
|
--color3: #414255;
|
||||||
|
--color4: #0E7587;
|
||||||
|
--color5: #64468F;
|
||||||
|
--color6: #8D419F;
|
||||||
|
--color7: #79c4c6;
|
||||||
|
--color8: #54898a;
|
||||||
|
--color9: #175564;
|
||||||
|
--color10: #066C71;
|
||||||
|
--color11: #414255;
|
||||||
|
--color12: #0E7587;
|
||||||
|
--color13: #64468F;
|
||||||
|
--color14: #8D419F;
|
||||||
|
--color15: #79c4c6;
|
||||||
|
}
|
Reference in New Issue
Block a user