Commit graph

14 commits

Author SHA1 Message Date
083d89c6f0 fix(dotmatrix/middle): do not repeat stuff + gradient of colors
- Avoid repeating keywords in the middle line.
- Adds DOTMATRIX_ENABLE_GRADIENT_LINE to allow for a fading middle line.
2022-10-06 20:50:10 +02:00
94a427a407 fix(dotmatrix): shell checks 2022-10-06 20:50:10 +02:00
379302b72e refactor(dotmatrix): avoid subshell 2022-10-06 20:50:10 +02:00
d55844d2ed fix(dotmatrix): just pass the format to lp_terminal_format 2022-10-06 20:50:10 +02:00
0e16dacb72 refactor(dotmatrix): be more consistent in variables quoting/bracketing 2022-10-06 20:50:10 +02:00
085aefc933 refactor(dotmatrix): use _lp_fill instead of infamous subshells 2022-10-06 20:50:10 +02:00
483afe636b feat(dotmatrix): adds missing features
- wifi
- shell level
- sudo
- envs
- fix __dotmatrix_make_sep_dang
2022-10-06 20:50:10 +02:00
e0d70e0c11 feat(utils): adds _lp_fill and use it in dotmatrix 2022-10-06 20:50:10 +02:00
d18e623c38 fix(dotmatrix): optim loop
Avoid subshells
2022-10-06 20:48:31 +02:00
7d1d8b5092 refactor(dotmatrix): use __lp_strip_escapes
Instead of the deprecated _lp_as_text
2022-10-06 20:48:31 +02:00
cde80a17ae fix(dotmatrix): follow style rules on variable quoting and arrays 2022-10-06 20:48:31 +02:00
87483187bf fix(dotmatrix): fix style of the items in the env line
- add separators around items in the line,
- add optional spacing within items,
- fix color.
2022-10-06 20:48:31 +02:00
3e6a09c777 [dotmatrix] more on vcs 2022-10-06 20:48:31 +02:00
92509905ab feature: add the dotmatrix theme
The dotmatrix theme is basically the look of "powerline", but done right on the user experience side.
The main idea is to highlight what's important, instead of displaying too much things because fancy colors everywhere is fun.

To achieve that, the dotmatrix theme has been very carefully designed:
- it uses three four modules: host/path, machine state, environment, version control.
- it uses a consistent visual grammar (using 3 separators and 3 colors).
- it follows good practices for color blindness.

The current code use a similar approach to the one used for the powerline theme, but needs a refactoring.
2022-10-06 20:48:31 +02:00