feat(doc): Makefile for making screenshots
15
Makefile
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
LP ?= /home/nojhan/code/liquidprompt
|
||||||
|
HEIGHT := 450
|
||||||
|
THEME := dotmatrix dotmatrix.theme
|
||||||
|
|
||||||
|
ALL := $(addprefix screenshots/,variant-chevron.png variant-round.png variant-slant.png variant-text.png variant-chevron_colors-cyan-magenta.png variant-chevron_colors-green-red.png variant-chevron_colors-high-contrast.png)
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
|
||||||
|
all: Makefile $(ALL)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(ALL)
|
||||||
|
|
||||||
|
%.png:
|
||||||
|
$(LP)/tools/theme-screenshot.sh $(HEIGHT) $(THEME) $(addprefix presets/,$(addsuffix .conf, $(subst _, ,$(basename $(notdir $@))))) > $@
|
||||||
37
README.md
|
|
@ -17,23 +17,14 @@ But we believe that the advantages of this design makes it worth the effort.
|
||||||
Preview
|
Preview
|
||||||
-------
|
-------
|
||||||
|
|
||||||
If there is nothing special about the current context, the appearance of
|
Using the (recommended) "chevron" preset:
|
||||||
DotMatrix might be as simple as this:
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
A typical display of a slightly complex session would look like this:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
The DotMatrix theme also comes as several variants, changing the shape of the segments separators,
|
The DotMatrix theme also comes as several variants, changing the shape of the segments separators,
|
||||||
like the (default) "dotmatrix" pixels:
|
like the "slant" variant:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
or the "slant" variant:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
Design
|
Design
|
||||||
|
|
@ -72,7 +63,7 @@ For instance, in the following prompt, you can see that the user is in a Git rep
|
||||||
- the rightmost blue "≠" indicates that there are some modifications waiting to be commited (hence the directional hint, from a diff to the branch).
|
- the rightmost blue "≠" indicates that there are some modifications waiting to be commited (hence the directional hint, from a diff to the branch).
|
||||||
- the leftmost blue segment indicates that there are some commits that may be pushed to the remote (hence the directional hint, from the branch to the VCS symbol).
|
- the leftmost blue segment indicates that there are some commits that may be pushed to the remote (hence the directional hint, from the branch to the VCS symbol).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
The screenshot also shows that the last command ended in an error, hence the red-over-yellow error code.
|
The screenshot also shows that the last command ended in an error, hence the red-over-yellow error code.
|
||||||
|
|
||||||
|
|
@ -126,25 +117,25 @@ Variants needing a Nerd-fonts font:
|
||||||
|
|
||||||
- "chevron" (the recommended one):
|
- "chevron" (the recommended one):
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- "round":
|
- "round":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- "slant":
|
- "slant":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Variants available with a regular font:
|
Variants available with a regular font:
|
||||||
|
|
||||||
- "dotmatrix" (the default):
|
- "dotmatrix" (the default):
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- "text" (using only common characters):
|
- "text" (using only common characters):
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
|
|
@ -204,14 +195,6 @@ A second set changes the colors:
|
||||||
If set to false, this flag will configure a compact prompt,
|
If set to false, this flag will configure a compact prompt,
|
||||||
showing segments without extra spaces around their joints.
|
showing segments without extra spaces around their joints.
|
||||||
|
|
||||||
Example of a spaced prompt:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
Example of a compact prompt:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
#### Specific features
|
#### Specific features
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
BIN
screenshots/variant-chevron.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
screenshots/variant-chevron_colors-cyan-magenta.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
screenshots/variant-chevron_colors-green-red.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
screenshots/variant-chevron_colors-high-contrast.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
screenshots/variant-round.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
screenshots/variant-slant.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
screenshots/variant-text.png
Normal file
|
After Width: | Height: | Size: 26 KiB |