diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fdac496 --- /dev/null +++ b/Makefile @@ -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 $@))))) > $@ diff --git a/README.md b/README.md index 4afaee3..ea49bae 100644 --- a/README.md +++ b/README.md @@ -17,23 +17,14 @@ But we believe that the advantages of this design makes it worth the effort. Preview ------- -If there is nothing special about the current context, the appearance of -DotMatrix might be as simple as this: +Using the (recommended) "chevron" preset: -![](screenshots/dotmatrix-short-chevron.png) - -A typical display of a slightly complex session would look like this: - -![](screenshots/dotmatrix-med-chevron.png) +![](screenshots/variant-chevron.png) The DotMatrix theme also comes as several variants, changing the shape of the segments separators, -like the (default) "dotmatrix" pixels: +like the "slant" variant: -![](screenshots/dotmatrix-short-dots.png) - -or the "slant" variant: - -![](screenshots/dotmatrix-med-slant.png) +![](screenshots/variant-slant.png) 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 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). -![](screenshots/dotmatrix-intro-chevron.png) +![](screenshots/variant-chevron.png) 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): -![](screenshots/dotmatrix-short-chevron.png) +![](screenshots/varint-chevron.png) - "round": -![](screenshots/dotmatrix-short-round.png) +![](screenshots/variant-round.png) - "slant": -![](screenshots/dotmatrix-short-slant.png) +![](screenshots/variant-slant.png) Variants available with a regular font: - "dotmatrix" (the default): -![](screenshots/dotmatrix-short-dots.png) +![](screenshots/variant-dots.png) - "text" (using only common characters): -![](screenshots/dotmatrix-short-text.png) +![](screenshots/variant-text.png) Configuration @@ -204,14 +195,6 @@ A second set changes the colors: If set to false, this flag will configure a compact prompt, showing segments without extra spaces around their joints. -Example of a spaced prompt: - -![](screenshots/dotmatrix-spaced.png) - -Example of a compact prompt: - -![](screenshots/dotmatrix-unspaced.png) - #### Specific features diff --git a/presets/colors_cyan-magenta.conf b/presets/colors-cyan-magenta.conf similarity index 100% rename from presets/colors_cyan-magenta.conf rename to presets/colors-cyan-magenta.conf diff --git a/presets/colors_green-red.conf b/presets/colors-green-red.conf similarity index 100% rename from presets/colors_green-red.conf rename to presets/colors-green-red.conf diff --git a/presets/colors_high-contrast.conf b/presets/colors-high-contrast.conf similarity index 100% rename from presets/colors_high-contrast.conf rename to presets/colors-high-contrast.conf diff --git a/screenshots/dotmatrix-intro-chevron.png b/screenshots/dotmatrix-intro-chevron.png deleted file mode 100644 index ea01de1..0000000 Binary files a/screenshots/dotmatrix-intro-chevron.png and /dev/null differ diff --git a/screenshots/dotmatrix-long-chevron.png b/screenshots/dotmatrix-long-chevron.png deleted file mode 100644 index 2d1bd3b..0000000 Binary files a/screenshots/dotmatrix-long-chevron.png and /dev/null differ diff --git a/screenshots/dotmatrix-med-chevron.png b/screenshots/dotmatrix-med-chevron.png deleted file mode 100644 index 1c63113..0000000 Binary files a/screenshots/dotmatrix-med-chevron.png and /dev/null differ diff --git a/screenshots/dotmatrix-med-slant.png b/screenshots/dotmatrix-med-slant.png deleted file mode 100644 index b309e1d..0000000 Binary files a/screenshots/dotmatrix-med-slant.png and /dev/null differ diff --git a/screenshots/dotmatrix-med-text.png b/screenshots/dotmatrix-med-text.png deleted file mode 100644 index 921c1f3..0000000 Binary files a/screenshots/dotmatrix-med-text.png and /dev/null differ diff --git a/screenshots/dotmatrix-short-chevron.png b/screenshots/dotmatrix-short-chevron.png deleted file mode 100644 index ba64f68..0000000 Binary files a/screenshots/dotmatrix-short-chevron.png and /dev/null differ diff --git a/screenshots/dotmatrix-short-dots.png b/screenshots/dotmatrix-short-dots.png deleted file mode 100644 index c0114ae..0000000 Binary files a/screenshots/dotmatrix-short-dots.png and /dev/null differ diff --git a/screenshots/dotmatrix-short-round.png b/screenshots/dotmatrix-short-round.png deleted file mode 100644 index 3eb328a..0000000 Binary files a/screenshots/dotmatrix-short-round.png and /dev/null differ diff --git a/screenshots/dotmatrix-short-slant.png b/screenshots/dotmatrix-short-slant.png deleted file mode 100644 index a49fb44..0000000 Binary files a/screenshots/dotmatrix-short-slant.png and /dev/null differ diff --git a/screenshots/dotmatrix-short-text.png b/screenshots/dotmatrix-short-text.png deleted file mode 100644 index cfec607..0000000 Binary files a/screenshots/dotmatrix-short-text.png and /dev/null differ diff --git a/screenshots/dotmatrix-spaced.png b/screenshots/dotmatrix-spaced.png deleted file mode 100644 index e9983a9..0000000 Binary files a/screenshots/dotmatrix-spaced.png and /dev/null differ diff --git a/screenshots/dotmatrix-unspaced.png b/screenshots/dotmatrix-unspaced.png deleted file mode 100644 index 8b0b6b4..0000000 Binary files a/screenshots/dotmatrix-unspaced.png and /dev/null differ diff --git a/screenshots/variant-chevron.png b/screenshots/variant-chevron.png new file mode 100644 index 0000000..774f3e5 Binary files /dev/null and b/screenshots/variant-chevron.png differ diff --git a/screenshots/variant-chevron_colors-cyan-magenta.png b/screenshots/variant-chevron_colors-cyan-magenta.png new file mode 100644 index 0000000..1dfe737 Binary files /dev/null and b/screenshots/variant-chevron_colors-cyan-magenta.png differ diff --git a/screenshots/variant-chevron_colors-green-red.png b/screenshots/variant-chevron_colors-green-red.png new file mode 100644 index 0000000..c8e840c Binary files /dev/null and b/screenshots/variant-chevron_colors-green-red.png differ diff --git a/screenshots/variant-chevron_colors-high-contrast.png b/screenshots/variant-chevron_colors-high-contrast.png new file mode 100644 index 0000000..49964a6 Binary files /dev/null and b/screenshots/variant-chevron_colors-high-contrast.png differ diff --git a/screenshots/variant-round.png b/screenshots/variant-round.png new file mode 100644 index 0000000..ece0119 Binary files /dev/null and b/screenshots/variant-round.png differ diff --git a/screenshots/variant-slant.png b/screenshots/variant-slant.png new file mode 100644 index 0000000..9613400 Binary files /dev/null and b/screenshots/variant-slant.png differ diff --git a/screenshots/variant-text.png b/screenshots/variant-text.png new file mode 100644 index 0000000..6c611d3 Binary files /dev/null and b/screenshots/variant-text.png differ