-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default color and minor color enhancements
The significant code change was to replace the `START_COLOR` and `END_COLOR` macros by an enum and a variable `outcolor` used similarly to `outwalk` (see `OUTPUT_FULL_TEXT`). A few improvements have been made from there: 1. allow any `color_*` config to be set to an empty string to disable it (i.e. force remove the color from the output) (also useful for 2.). 2. add a `color_default` config to general and to all modules/sections, so the default/normal color can be customized everywhere (color of `tztime`, "normal" color of `memory`, etc...). Unspecified by default, so same as old behavior (no color output). 3. fix per-section color emission for `output_format` other than `i3bar`.
- Loading branch information
Showing
19 changed files
with
154 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.