From 35e57741d3f8fcce409daf7a8cc1dc348c6ba72c Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 18 Jun 2023 12:58:27 +0800 Subject: [PATCH] Global: document `---key-color` --- completions/bash | 80 +++++++++++++++++------------------ src/data/config_user.txt | 91 +++++++++++++++++++--------------------- src/data/help.txt | 14 +++---- 3 files changed, 90 insertions(+), 95 deletions(-) diff --git a/completions/bash b/completions/bash index 3a30c9b30..67b2269bc 100644 --- a/completions/bash +++ b/completions/bash @@ -239,124 +239,124 @@ __fastfetch_completion() "--weather-timeout" "--os-key" "--os-format" - "--os-error" + "--os-key-color" "--host-key" "--host-format" - "--host-error" + "--host-key-color" "--kernel-key" "--kernel-format" - "--kernel-error" + "--kernel-key-color" "--uptime-key" "--uptime-format" - "--uptime-error" + "--uptime-key-color" "--processes-key" "--processes-format" - "--processes-error" + "--processes-key-color" "--packages-key" "--packages-format" - "--packages-error" + "--packages-key-color" "--shell-key" "--shell-format" - "--shell-error" + "--shell-key-color" "--display-key" "--display-format" - "--display-error" + "--display-key-color" "--de-key" "--de-format" - "--de-error" + "--de-key-color" "--wm-key" "--wm-format" - "--wm-error" + "--wm-key-color" "--wm-theme-key" "--wm-theme-format" - "--wm-theme-error" + "--wm-theme-key-color" "--theme-key" "--theme-format" - "--theme-error" + "--theme-key-color" "--icons-key" "--icons-format" - "--icons-error" + "--icons-key-color" "--font-key" "--font-format" - "--font-error" + "--font-key-color" "--cursor-key" "--cursor-format" - "--cursor-error" + "--cursor-key-color" "--terminal-key" "--terminal-format" - "--terminal-error" + "--terminal-key-color" "--terminal-font-key" "--terminal-font-format" - "--terminal-font-error" + "--terminal-font-key-color" "--cpu-key" "--cpu-format" - "--cpu-error" + "--cpu-key-color" "--cpu-useage-key" "--cpu-useage-format" - "--cpu-useage-error" + "--cpu-useage-key-color" "--gpu-key" "--gpu-format" - "--gpu-error" + "--gpu-key-color" "--memory-key" "--memory-format" - "--memory-error" + "--memory-key-color" "--swap-key" "--swap-format" - "--swap-error" + "--swap-key-color" "--disk-key" "--disk-format" - "--disk-error" + "--disk-key-color" "--battery-key" "--battery-format" - "--battery-error" + "--battery-key-color" "--poweradapter-key" "--poweradapter-format" - "--poweradapter-error" + "--poweradapter-key-color" "--locale-key" "--locale-format" - "--locale-error" + "--locale-key-color" "--localip-key" "--localip-format" - "--localip-error" + "--localip-key-color" "--publicip-key" "--publicip-format" - "--publicip-error" + "--publicip-key-color" "--wifi-key" "--wifi-format" - "--wifi-error" + "--wifi-key-color" "--weather-key" "--weather-format" - "--weather-error" + "--weather-key-color" "--player-key" "--player-format" - "--player-error" + "--player-key-color" "--media-key" "--media-format" - "--media-error" + "--media-key-color" "--datetime-key" "--datetime-format" - "--datetime-error" + "--datetime-key-color" "--date-key" "--date-format" - "--date-error" + "--date-key-color" "--time-key" "--time-format" - "--time-error" + "--time-key-color" "--vulkan-key" "--vulkan-format" - "--vulkan-error" + "--vulkan-key-color" "--opengl-key" "--opengl-format" - "--opengl-error" + "--opengl-key-color" "--opencl-key" "--opencl-format" - "--opencl-error" + "--opencl-key-color" "--users-key" "--users-format" - "--users-error" + "--users-key-color" "--bluetooth-key" "--bluetooth-format" - "--bluetooth-error" + "--bluetooth-key-color" ) local FF_OPTIONS_PATH=( diff --git a/src/data/config_user.txt b/src/data/config_user.txt index 91902dedd..a05ca7ad8 100644 --- a/src/data/config_user.txt +++ b/src/data/config_user.txt @@ -379,53 +379,50 @@ #--gamepad-format #--wallpaper-format -# Error options: -# Sets the format string to use if an error occured -# For information on format strings, see "fastfetch --help format". -# Each of them take the error as first and only argument. -# If one of them is set, the module will appear, even if --show-errors is not given. -#--os-error -#--host-error -#--chassis-error -#--kernel-error -#--uptime-error -#--processes-error -#--packages-error -#--shell-error -#--display-error -#--brightness-error -#--de-error -#--wm-error -#--wm-theme-error -#--theme-error -#--icons-error -#--font-error -#--cursor-error -#--terminal-error -#--terminal-font-error -#--cpu-error -#--cpu-usage-error -#--gpu-error -#--memory-error -#--swap-error -#--disk-error -#--battery-error -#--poweradapter-error -#--locale-error -#--localip-error -#--publicip-error -#--weather-error -#--player-error -#--media-error -#--datetime-error -#--vulkan-error -#--opengl-error -#--opencl-error -#--users-error -#--bluetooth-error -#--sound-error -#--gamepad-error -#--wallpaper-error +# Key color options: +# Overrides the global `--color-keys` for one specified module +#--os-key-color +#--host-key-color +#--chassis-key-color +#--kernel-key-color +#--uptime-key-color +#--processes-key-color +#--packages-key-color +#--shell-key-color +#--display-key-color +#--brightness-key-color +#--de-key-color +#--wm-key-color +#--wm-theme-key-color +#--theme-key-color +#--icons-key-color +#--font-key-color +#--cursor-key-color +#--terminal-key-color +#--terminal-font-key-color +#--cpu-key-color +#--cpu-usage-key-color +#--gpu-key-color +#--memory-key-color +#--swap-key-color +#--disk-key-color +#--battery-key-color +#--poweradapter-key-color +#--locale-key-color +#--localip-key-color +#--publicip-key-color +#--weather-key-color +#--player-key-color +#--media-key-color +#--datetime-key-color +#--vulkan-key-color +#--opengl-key-color +#--opencl-key-color +#--users-key-color +#--bluetooth-key-color +#--sound-key-color +#--gamepad-key-color +#--wallpaper-key-color # Library options: # Sets an user specific path to a library to load. diff --git a/src/data/help.txt b/src/data/help.txt index 6d7bd3f45..bad9e1def 100644 --- a/src/data/help.txt +++ b/src/data/help.txt @@ -67,16 +67,14 @@ Display options: --no-buffer : Set if the stdout application buffer should be disabled. Default is false General module options: - ---format : Set the format string to use for each specific module. - To see how a format string works, use fastfetch --help format. - To see help about a specific format string, use fastfetch --help -format. + ---format : Set the format string to use for each specific module. + To see how a format string works, use fastfetch --help format. + To see help about a specific format string, use fastfetch --help -format. - ---key : Set the key to use for each specific module. - For modules which print multiple lines, the string is parsed as a format string with the index as first character. + ---key : Set the key to use for each specific module. + For modules which print multiple lines, the string is parsed as a format string with the index as first character. - ---error : Set the error format string to use for each specific module. - The error is given as the first and only argument. - Setting this for a module will cause it to appear, even if --show-errors is not given. + ---key-color : Override the global `--color-keys` option for each specific module. Library options: Set the path of a library to load --lib-PCI