@@ -5,7 +5,9 @@ A simple "theme" manager in rust. It's stupidly simple to use.
5
5
You give tm a text file with 16 colors and a template file, tm
6
6
creates complete file out of the template and text file.
7
7
8
- WARNING: There might be some bugs!
8
+ If for some reason, you want to add more than 16 colors,
9
+ you can do so by changing lib.rs file. But I will not
10
+ guarantee that it will work!
9
11
10
12
building
11
13
==========
@@ -30,15 +32,18 @@ nothing less. It's plain and simple.
30
32
templates
31
33
===========
32
34
33
- The template layout is quite different from the python
34
- version. Consequently, the colors file is quite different
35
+ The template layout is slightly different from the python
36
+ version. Consequently, the colors file is slightly different
35
37
too. In this version, the colors file should not have a # in
36
38
the color definition. So #ffffff becomes ffffff
37
39
38
40
If the template files need a #, you mark the color as #Xn
39
41
where n is the nth color in the given file.
40
42
A typical template marker looks like this `color0="#X0"`
41
43
44
+ Some examples can be found at
45
+ https://github.com/vizs/home/tree/master/etc/tm
46
+
42
47
exit codes
43
48
============
44
49
@@ -51,16 +56,21 @@ below
51
56
5 - not enough arguments
52
57
6 - couldn't read template
53
58
54
- todo
55
- ======
59
+ env vars
60
+ ==========
61
+
62
+ tm's template dir can be set using an env var. tm first
63
+ looks for TM_TEMPLATE_DIR, if it is not set, it falls
64
+ back to $XDG_CONFIG_HOME/tm, if $XDG_CONFIG_HOME is not
65
+ set, it falls back to $HOME/.config/tm
66
+
67
+ output dir
68
+ ============
56
69
57
- A lot of stuff...
58
- [ ] Refactor code
59
- [x] Add comments in write_to_template function in template.rs
60
- [x] Rewrite utils.py in Rust
61
- [ ] Use s.insert(0, something) to prepend instead of format!
70
+ The finished files are stored in $XDG_CACHE_HOME/tm, if
71
+ $XDG_CACHE_HOME is not set, it falls back to $HOME/.cache/tm
62
72
63
73
license
64
74
=========
65
75
66
- Still not sure... Might use BSD License
76
+ Licensed under BSD 2-Clause License
0 commit comments