diff --git a/CHANGELOG.md b/CHANGELOG.md index 2483713c9..83308f87c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ Bugfixes: * Fix compatibility with Fig (Terminal, macOS) * Fix option `--title-fqdn` doesn't work (Title) * Fix used spaces calculation (Disk, Linux / BSD / macOS, #508) +* Fix `--brightness-format` (Brightness) Logo: * Change the special handling of `kitty` protocol with `.png` image file to a new image protocol `kitty-direct`. This is the fastest image protocol because fastfetch doesn't need to pre-encode the image to base64 or something and the image content doesn't need to be transmitted via tty. Note: diff --git a/src/fastfetch.c b/src/fastfetch.c index 84bd26689..23ae425ae 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -193,6 +193,13 @@ static inline void printCommandHelp(const char* command) "Screen rotation" ); } + else if(ffStrEqualsIgnCase(command, "brightness-format")) + { + constructAndPrintCommandHelpFormat("brightness", "{}", 2, + "Screen brightness", + "Screen name" + ); + } else if(ffStrEqualsIgnCase(command, "de-format")) { constructAndPrintCommandHelpFormat("de", "{2} {3}", 3, diff --git a/src/modules/brightness/brightness.c b/src/modules/brightness/brightness.c index 5798b6719..3e5ea3663 100644 --- a/src/modules/brightness/brightness.c +++ b/src/modules/brightness/brightness.c @@ -64,8 +64,8 @@ void ffPrintBrightness(FFBrightnessOptions* options) else { ffPrintFormatString(key.chars, 0, NULL, &options->moduleArgs.keyColor, &options->moduleArgs.outputFormat, FF_BRIGHTNESS_NUM_FORMAT_ARGS, (FFformatarg[]) { - {FF_FORMAT_ARG_TYPE_STRBUF, &item->value}, - {FF_FORMAT_ARG_TYPE_FLOAT, &item->name} + {FF_FORMAT_ARG_TYPE_FLOAT, &item->value}, + {FF_FORMAT_ARG_TYPE_STRBUF, &item->name}, }); }