make defaults configurable

This commit is contained in:
fatalerrors
2026-04-15 13:38:08 +02:00
parent 85f02f4498
commit 9a006883b8
11 changed files with 269 additions and 40 deletions

View File

@@ -12,26 +12,71 @@ PAGER=less
TERM=xterm-256color
[compress]
# Section used by compress.sh
# Section used by compress.sh (taz and utaz functions).
# taz: Default archive format when -f/--format is not specified.
# Supported values: lz (default), xz, bz2, gz, lzo, tar
#TAZ_DEFAULT_FORMAT=lz
# taz: Default number of compression threads when -p/--parallel is not specified.
# Set to the number of CPU cores to use parallel compression where supported.
#TAZ_DEFAULT_THREADS=1
# taz: Default compression level when none is given (1=fast/big .. 9=slow/small).
#TAZ_DEFAULT_LEVEL=6
# utaz: Delete source archives after successful extraction (0=no, 1=yes).
#UTAZ_DEFAULT_DELETE=0
# utaz: Default directory creation mode when neither --create-dir nor --no-dir is given.
# Supported values:
# auto (default) — create a subdirectory only when the archive contains
# multiple top-level entries or a bare file
# always — always extract into a new subdirectory
# never — always flatten extraction into the current directory
#UTAZ_DEFAULT_DIR_MODE=auto
[debug]
# Section used by debug.sh
# Section used by debug.sh (nothing yet)
[disp]
# Section used by disp.sh
# Set to any value to disable colors in internal profile output (not controling binary output)
# NO_COLOR=1
[filefct]
# Section used by filefct.sh
# expandlist: Default output separator between items (default: space).
# Use \n for newline, or any other character/string.
#EXPANDLIST_DEFAULT_SEPARATOR=" "
# clean: Enable recursive mode by default (0=no, 1=yes).
#CLEAN_DEFAULT_RECURSIVE=0
# rmspc: Default character used to replace spaces in filenames (default: underscore).
# Set to empty to concatenate words without separator (equivalent to --subst-char with no value).
#RMSPC_DEFAULT_CHAR=_
# findbig: Default number of results to return (default: 10).
#FINDBIG_DEFAULT_LIMIT=10
[fun]
# Section used by fun.sh
# Section used by fun.sh (busy function).
# busy: Default hex pattern to search for in /dev/urandom hexdump (default: "ca fe").
#BUSY_DEFAULT_PATTERN=ca fe
# busy: Default delay between matched lines in milliseconds (default: 0 = no delay).
#BUSY_DEFAULT_DELAY=0
[info]
# Section used by info.sh
# Default city for weather forcast and local news
DEFAULT_CITY="Toulouse"
# meteo: Default city used when no city argument is given.
# Unset or empty disables the fallback and requires an explicit city argument.
METEO_DEFAULT_CITY="Toulouse"
[lang]
# Section used by lang.sh
@@ -40,23 +85,136 @@ DEFAULT_CITY="Toulouse"
SET_LOCALE="fr:fr_FR.UTF-8,us:en_US.UTF-8"
[net]
# Section used by net.sh
# Section used by net.sh (dwl, myextip functions).
# dwl: Force a specific download tool instead of auto-detecting (curl → wget → fetch).
# Supported values: curl, wget, fetch. Unset uses auto-detection (default).
#DWL_PREFERRED_TOOL=curl
# myextip: API endpoint URL used to retrieve external IP information.
# Default: https://ip-api.com/json/
# Compatible alternatives: https://ipinfo.io/json, https://ip-api.com/json/
#MYEXTIP_DEFAULT_URL=https://ip-api.com/json/
[packages]
# Section used by packages.sh
# pkgs: Enable case-insensitive search by default (1=yes, 0=no; default: 0).
#PKGS_DEFAULT_IGNORE_CASE=0
[processes]
# Section used by processes.sh
# ppu: Output columns passed to ps -o when listing processes for a user.
# Comma-separated list of ps field names. Default: pid,user,%cpu,%mem,start,time,command
#PPU_DEFAULT_FORMAT=pid,user,%cpu,%mem,start,time,command
# ku: Signal sent to processes when killing a user's session (default: TERM).
# Use signal names without the SIG prefix (e.g. TERM, KILL, HUP).
#KU_DEFAULT_SIGNAL=TERM
[prompt]
# Section used by prompt.sh
# Name of the theme to load, or an explicit path to a .theme file.
# Bare names are resolved as $PROMPT_THEME_DIR/<name>.theme.
# When unset, no theme is loaded and the hardcoded fallback colours are used.
#PROMPT_THEME=default
# Directory that contains .theme files. Defaults to profile.d/themes/ inside
# the profile installation directory.
#PROMPT_THEME_DIR=/path/to/themes
# Individual colour overrides. These always win over the loaded theme.
# Values must be valid ANSI escape sequences as exported by disp.sh, e.g.:
# \e[0;34m (Blue) \e[42m (On_Green) \e[1;32m (BGreen)
# All keys listed below correspond to variables exported by disp.sh.
# Clock segment
#PROMPT_COLOR_TIME_FG=$Blue
#PROMPT_COLOR_TIME_BG=$On_IBlack
# Main bar background (success and info)
#PROMPT_COLOR_BAR_BG=$On_Blue
# Exit-code segment — success state
#PROMPT_COLOR_OK_FG=$White
#PROMPT_COLOR_OK_MARK=$Green
# Exit-code segment — failure state
#PROMPT_COLOR_ERR_BG=$On_Red
#PROMPT_COLOR_ERR_FG=$White
#PROMPT_COLOR_ERR_MARK=$BYellow
# User/host colours
#PROMPT_COLOR_ROOT_FG=$Red
#PROMPT_COLOR_USER_FG=$Green
# Working directory
#PROMPT_COLOR_DIR_FG=$ICyan
[pwd]
# Section used by pwd.sh
# Section used by pwd.sh (genpwd and pwdscore functions).
# genpwd: Default password length (default: 16).
#GENPWD_DEFAULT_LENGTH=16
# genpwd: Maximum occurrences of any single character (default: 2).
#GENPWD_DEFAULT_OCCURS=2
# genpwd: Number of passwords generated when no count argument is given (default: 1).
#GENPWD_DEFAULT_COUNT=1
# genpwd: Include symbols in the character pool (1=yes, 0=no; default: 1).
#GENPWD_DEFAULT_SYMBOLS=1
# genpwd: Include uppercase letters in the character pool (1=yes, 0=no; default: 1).
#GENPWD_DEFAULT_UPPERCASE=1
# genpwd: Include lowercase letters in the character pool (1=yes, 0=no; default: 1).
#GENPWD_DEFAULT_LOWERCASE=1
# genpwd: Include digits in the character pool (1=yes, 0=no; default: 1).
#GENPWD_DEFAULT_NUMBERS=1
# pwdscore: Show verbose breakdown by default (1=yes, 0=no; default: 0).
#PWDSCORE_DEFAULT_VERBOSE=0
[rain]
# Section used by rain.sh
# Section used by rain.sh (rain and matrix functions).
# rain: Default speed value, using the /100 scale (5 => 0.050s, 10 => 0.100s).
# Values < 1 are interpreted as raw seconds.
#RAIN_DEFAULT_SPEED=5
# rain: Default color theme.
# Supported values: white (default), green, blue, red, yellow, cyan
#RAIN_DEFAULT_COLOR=white
# matrix: Default speed value, using the /100 scale (3.5 => 0.035s).
#MATRIX_DEFAULT_SPEED=3.5
# matrix: Default color theme.
# Supported values: green (default), blue, red, yellow, cyan, white
#MATRIX_DEFAULT_COLOR=green
# matrix: Default character set.
# Supported values: binary (default), kana, ascii
MATRIX_DEFAULT_CHARSET=kana
[ssh]
# Section used by ssh.sh
# ssr: Default SSH options prepended to every ssr invocation.
# Options are word-split, so space-separated flags are supported.
# The default behaviour without this key is equivalent to: SSH_DEFAULT_OPT=-Y
# Set to an empty value to pass no default options.
# Examples:
# SSH_DEFAULT_OPT=-Y # X11 forwarding (original default)
# SSH_DEFAULT_OPT=-Y -o StrictHostKeyChecking=accept-new
# SSH_DEFAULT_OPT= # no default options
#SSH_DEFAULT_OPT=-Y
[updates]
# Section used by updates.sh