Skip to content

Commit ebc1cb1

Browse files
authored
Merge pull request #36 from mimvoid/fix-docs
Improve documentation spelling, grammar, and links
2 parents 81b53bd + 83093c2 commit ebc1cb1

File tree

1 file changed

+65
-38
lines changed

1 file changed

+65
-38
lines changed

README.md

Lines changed: 65 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Hellwal - Fast, Extensible Color Palette Generator
22

33
<p align="center">
4-
<img align="center" src="https://raw.githubusercontent.com/danihek/trashcan/refs/heads/main/output.gif" alt="Preview" width="500">
4+
<img
5+
src="https://raw.githubusercontent.com/danihek/trashcan/refs/heads/main/output.gif"
6+
alt="Preview of color palettes generated by hellwal"
7+
width="500"
8+
>
59
</p>
610

711
### Star History
@@ -40,7 +44,7 @@ environment.systemPackages = [
4044

4145
## Building
4246

43-
Clone git repo, run make command and you are ready to go! - you just need C compiler and gnumake!
47+
Clone git repo, run make command and you are ready to go! - you just need a C compiler and gnumake!
4448

4549
```sh
4650
git clone https://github.com/danihek/hellwal && cd hellwal && make
@@ -54,18 +58,20 @@ Run this with your wallpaper image:
5458
hellwal -i [image]
5559
```
5660

57-
You can also randomly pick image from given directory like this:
61+
You can also randomly pick an image from a given directory like this:
5862

5963
```sh
6064
hellwal -i <folder> --random
6165
```
6266

63-
Generated, templates are saved in ``~/.cache/hellwal/`` directory.
67+
Generated templates are saved in `~/.cache/hellwal/`.
6468

6569
## Templates
66-
**[INFO]** - if you got hellwal from **AUR**, examples of default templates are stored in `/usr/share/docs/`
6770

68-
Look up for templating examples in [templates folder](./templates), they look more-less like this:
71+
**[INFO]** - if you got hellwal from the **AUR**, examples of default templates can be
72+
found in `/usr/share/docs/`.
73+
74+
There are also examples in the [templates folder](./templates). They look more-less like this:
6975

7076
```sh
7177
# Main
@@ -79,7 +85,7 @@ wallpaper_path='%%wallpaper%%'
7985
color0='%%color0.hex%%'
8086
color1='%%color1.hex%%'
8187

82-
# ... and so on and so fourth.
88+
# ... and so on and so forth.
8389

8490
color15='%%color15.hex%%'
8591

@@ -92,38 +98,43 @@ color15butRGB='%%color15.rgb%%'
9298

9399
```
94100

95-
You can get any generated color between 0-15 values.
96-
By writing '.' after keyword you can specify type: hex or rgb. If you havent specify this output of template will be in hex.
101+
You can get any generated color for values 0 to 15.
102+
103+
After the color keyword, you can specify the format: hex or rgb. By default, the template output
104+
is in hex.
97105

98106
### Available color template formats:
99107

100108
| Type | Input | Output |
101-
|------|------------|---------|
109+
| ---- | ---------- | ------- |
102110
| hex | color0.hex | 000000 |
103111
| rgb | color0.rgb | 0, 0, 0 |
104112

105-
### Addtional variables accepted by templates
113+
### Additional variables accepted by templates
106114

107-
Alongside with colors you can specify some variables to make them more suitable for your needs.
115+
Alongside colors, you can specify some variables to make them more suitable for your needs.
108116
For now these variables are available:
109117

110-
| Variable | Description | Usage |
111-
|----------|-------------------------|------------------------------|
112-
| alpha | Set transparency value | `%% color1.hex alpha=0.5 %%` |
118+
| Variable | Description | Usage |
119+
| -------- | ---------------------- | ---------------------------- |
120+
| alpha | Set transparency value | `%% color1.hex alpha=0.5 %%` |
113121

114122
## JSON
115123

116-
You can use ``--json``argument to suppress any other output and write colors to ``stdout`` in json format. It's easy to do something with it with ``jq`` later. For example:
124+
You can use the `--json` argument to suppress any other output and write colors to `stdout` in JSON format.
125+
You can then manipulate the output with `jq`. For example:
117126

118127
```sh
119128
hellwal -i [wallpaper] --json | jq '.'
120129
```
121130

122131
## Themes
123132

124-
You can set your own theme, re-run it anytime and apply to your config or other programs!
125-
It can be previously generated palette from image, gruvbox, tokyonight or anything you want!
126-
For example gruvbox theme:
133+
You can set your own theme, re-run it anytime and apply it to your config or other programs!
134+
It can be a previously generated palette from an image,
135+
[gruvbox](https://github.com/morhetz/gruvbox),
136+
[Tokyo Night](https://github.com/tokyo-night/tokyo-night-vscode-theme),
137+
or anything you want! For example, gruvbox theme:
127138

128139
```sh
129140
%% color0 = #282828 %%
@@ -144,29 +155,35 @@ For example gruvbox theme:
144155
%% color15 = #ebdbb2 %%
145156
```
146157

147-
Save text above as file or take from this repo [gruvbox](./themes/gruvbox.hellwal) and just run hellwal:
158+
Save the text above as a file or copy [gruvbox](./themes/gruvbox.hellwal) from this repo and
159+
just run hellwal:
148160

149161
```sh
150162
hellwal --theme ./themes/gruvbox.hellwal
151163
```
152164

153-
I recommend to put all themes to ``~/.config/hellwal/themes folder``, because from there you can just provide theme name, and it will pick it up automatically, without specifying path. Of course if you want, you can also set different theme-folder path. For example:
165+
I recommend putting all themes in the default theme folder `~/.config/hellwal/themes`.
166+
This way, you can provide the theme name without specifying the path, and hellwal will pick it
167+
up automatically. Of course if you want, you can also set a different theme folder.
168+
For example:
154169

155170
```sh
156171
hellwal -t gruvbox.hellwal --theme-folder ~/dotfiles/configs/hellwal/themes
157172
```
158173

159174
## NEON Mode
160175

161-
Neon mode boosts colors to make them look more neon-like, sometimes it's pain in the EYE, but usually it looks better. Turned **off** by default.
176+
Neon mode boosts colors to make them look more vibrant and bold. Sometimes it's a pain in the EYE,
177+
but it often looks better. Turned **off** by default.
162178

163179
```sh
164180
hellwal -i [wallpaper] --neon-mode
165181
```
166182

167183
## Modes
168184

169-
You can select ``-d`` and ``--dark`` or ``-l`` and ``--light`` mode on every given image, theme etc, no matter if it's generated from image or from theme file. Also there is ``--color`` mode.
185+
You can select `-d`/`--dark` or `-l`/`--light` mode on any given image, theme, etc., no
186+
matter if it's generated from an image or from a theme file. There is also `--color` mode.
170187

171188
### Dark mode (on by default)
172189

@@ -186,68 +203,78 @@ hellwal -i [wallpaper] --light
186203
hellwal -i [wallpaper] --color
187204
```
188205

189-
The best thing about it is that you are able to combine all of them together. Usually it's not a good idea, but sometimes you can achieve some crazy combination of colors!
206+
The best thing about it is that you are able to combine all of these together. Usually it's
207+
not a good idea, but sometimes you can achieve some crazy color combinations!
190208

191209
```sh
192210
hellwal -i [wallpaper] --color --light --dark
193211
```
194212

195213
---
196214

197-
Also you have couple of cool arguments to manipulate how colors will be computed:
215+
Also, you have a couple of cool arguments to manipulate how colors will be computed:
198216

199-
- you can make all colors in palette darker by specifying ``--dark-offset`` from 0-1:
217+
- you can darken all colors by specifying `--dark-offset` from 0-1 (the higher the value, the darker the colors):
200218

201219
```sh
202220
hellwal -i [wallpaper] --light --dark-offset 0.5
203221
```
204222

205-
- same with ``--bright-offset``:
223+
- same with `--bright-offset` (the higher the value, the brighter the colors):
206224

207225
```sh
208226
hellwal -i [wallpaper] --bright-offset 0.5
209227
```
210228

211-
- invert colors ``--invert``:
229+
- invert colors with `--invert`:
212230

213231
```sh
214232
hellwal -i [wallpaper] --light --invert
215233
```
216234

217-
- specify gray scale, if you want monochromatic colors ``--gray-scale``:
235+
- specify grayscale, if you want monochromatic colors, with `--gray-scale`:
218236

219237
```sh
220238
hellwal -i [wallpaper] --color --gray-scale 0.8
221239
```
222240

223241
## Scripts
224242

225-
With ``--script`` or ``-s`` you can run script(or any shell command) after hellwal.
226-
**Note**: it will only run if hellwal will not encounter any errors.
243+
With `--script` or `-s` you can run a script (or any shell command) after hellwal.
244+
245+
**Note**: it will only run if hellwal does not encounter any errors.
227246

228247
### On a side note:
229248

230-
If you want your new terminals to open with previusly generated or specified color palette, add this templates to your ``~/.config/hellwal/templates/`` folder:
249+
If you want your new terminals to open with a previously generated or specified color palette,
250+
add these templates to your `~/.config/hellwal/templates/` folder:
231251

232-
- variables.sh
233-
- terminal.sh
252+
- [variables.sh](./templates/variables.sh)
253+
- [terminal.sh](./templates/terminal.sh)
234254

235-
then in ``.bash.rc`` add following lines:
255+
Then in `.bashrc`, add following lines:
236256

237257
```sh
238258
source ~/.cache/hellwal/variables.sh
239259
sh ~/.cache/hellwal/terminal.sh
240260
```
241261

242-
### Alternatively if you use fish add these to fish config:
262+
### Alternatively if you use fish:
263+
264+
- [variablesfish.fish](./templates/variablesfish.fish)
265+
- [terminal.sh](./templates/terminal.sh)
266+
267+
Then add this to your fish config:
243268

244269
```sh
245270
source ~/.cache/hellwal/variablesfish.fish
246271
fish ~/.cache/hellwal/terminal.sh
247272
```
248273

249274
# Showcase
250-
![showcase2](https://github.com/user-attachments/assets/ddf2a55e-0fbb-4661-827a-6b124f1dacdb)
275+
276+
![More showcases of hellwal's generated palettes with various wallpapers](https://github.com/user-attachments/assets/ddf2a55e-0fbb-4661-827a-6b124f1dacdb)
251277

252278
# Special thanks:
253-
- [dylanaraps](https://github.com/dylanaraps) - for [https://github.com/dylanaraps/pywal](pywal) and other amazing stuff he created.
279+
280+
- [dylanaraps](https://github.com/dylanaraps) - for [pywal](https://github.com/dylanaraps/pywal) and other amazing stuff he created.

0 commit comments

Comments
 (0)