- Standardize capability usage with the terminfo database for
portability. POSIX tput does declare only the basic options such as
'init', 'reset' and 'clear', leaving the rest unspecified, that is not
ideal but hard coding escape sequences is way worse.
- Set colorization options based on number of colors the terminal
supports and not the TERM variable when possible. This is incomplete,
terminal emulators may support or adapt more than it is advertised,
but involves using DECRQSS queries and delays, as an example, 'resize'
utility from XTerm uses 3 seconds as delay, this is worrisome.
- Term with only '-direct' variants without ending with 256 means it
only supports direct-color indexing, therefore 'tmux-direct' cannot be
used, but the non-multiplexer terminal 'xterm-direct256' can.
The dotfiles provides hardened configuration as well as usability
settings, but it has downsides:
- Even though some programs allowing including extra files, not all of
them do;
- Experienced users wants their own configuration that can conflict in
file path;
- Adds a lot of lines to review that is not strictly necessary for Qusal
to work.
With this change, users can set pillar values to disable specific
components or all components.
For: https://github.com/ben-grande/dotfiles/pull/1
For: https://github.com/ben-grande/qusal/issues/17
Co-authored-by: Ben Grande <ben.grande.b@gmail.com>
It is a dotfile but I use the same file manager the window manager
provides, when it provides one, so adding fallback terminal is not
necessary for Thunar outside of Qubes, as it normally comes with sane
defaults.
For: https://github.com/ben-grande/dotfiles/pull/1
- CPU sum converted to average;
- Table is redrawed on terminal resize;
- Screen is saved before being drawn to;
- Works without sensors package; and
- Queries all relevant sensors.
When 'git config --get "alias.*"' is run, it expands especial characters
breaking the retrieval of aliases and assignment for shell aliases
starting the g for git.
Echo can interpret operand as an option and checking every variable to
be echoed is troublesome while with printf, if the format specifier is
present before the operand, printing as string can be enforced.