From 5a2bece9fcfd4d9dce74e7fa03c975c80d856fa8 Mon Sep 17 00:00:00 2001 From: Toni500git Date: Sat, 28 Sep 2024 18:23:03 +0200 Subject: [PATCH] misc: remove --kitty and --viu This may be breaking some compatibility with scripts that uses neofetch/fastfetch, but you can easely just -i , e.g -i kitty --- README.md | 2 -- cufetch.1 | 6 ------ include/config.hpp | 2 +- src/main.cpp | 12 ++---------- 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 72527f2..27f3f92 100644 --- a/README.md +++ b/README.md @@ -297,8 +297,6 @@ Any `$` or brackets can be escaped with a backslash `\` # TODOs * Color all ASCII arts (101/262) will take long ahh time -* Support images on terminal as logo (currently only in kitty) -* idk # Thanks I would like to thanks: diff --git a/cufetch.1 b/cufetch.1 index 2c9e618..6eb9744 100644 --- a/cufetch.1 +++ b/cufetch.1 @@ -176,12 +176,6 @@ Generate default config file to config folder (if path, it will generate to the .br Will ask for confirmation if file exists already .TP -\fB\-\-kitty\fR -Alias to "--image-backend=kitty" -.TP -\fB\-\-viu\fR -Alias to "--image-backend=viu" -.TP \fB\-\-color\fR Replace instances of a color with another value. .br diff --git a/include/config.hpp b/include/config.hpp index 803c830..1e70b6c 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -64,7 +64,7 @@ class Config std::vector dpkg_files; std::vector apk_files; - // inner management + // inner management / argument configs std::string m_custom_distro; std::string m_image_backend; bool m_disable_source = false; diff --git a/src/main.cpp b/src/main.cpp index 791ba9f..0ee510e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -53,7 +53,8 @@ A command-line system information tool (or neofetch like program), which its foc -f, --font The font to be used in GUI mode (syntax must be "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]" without the double quotes and []) An example: [Liberation Mono] [Normal] [12], which can be "Liberation Mono Normal 12" - -i, --image-backend (EXPERIMENTAL) Image backend tool for displaying images in terminal. Right now only 'kitty' and 'viu' are supported + -i, --image-backend (EXPERIMENTAL) Image backend tool for displaying images in terminal. + Right now only 'kitty' and 'viu' are supported It's recommended to use GUI mode for the moment if something doesn't work -g, --gui Use GUI mode instead of priting in the terminal (use -V to check if it was enabled) @@ -72,8 +73,6 @@ A command-line system information tool (or neofetch like program), which its foc --sep-reset-after [] Reset color either before of after 'sep-reset' (1 = after && 0 = before) --gen-config [] Generate default config file to config folder (if path, it will generate to the path) Will ask for confirmation if file exists already - --kitty Alias to "--image-backend=kitty" - --viu Alias to "--image-backend=viu" --color Replace instances of a color with another value. Syntax MUST be "name=value" with no space beetween "=", example: --color "foo=#444333". @@ -282,8 +281,6 @@ static bool parseargs(int argc, char* argv[], Config& config, const std::string_ {"source-path", required_argument, 0, 's'}, {"image-backend", required_argument, 0, 'i'}, - {"kitty", no_argument, 0, "kitty"_fnv1a16}, - {"viu", no_argument, 0, "viu"_fnv1a16}, {"sep-reset", required_argument, 0, "sep-reset"_fnv1a16}, {"title-sep", required_argument, 0, "title-sep"_fnv1a16}, {"sep-reset-after", optional_argument, 0, "sep-reset-after"_fnv1a16}, @@ -388,11 +385,6 @@ static bool parseargs(int argc, char* argv[], Config& config, const std::string_ config.sep_reset_after = true; break; - case "kitty"_fnv1a16: - config.m_image_backend = "kitty"; break; - case "viu"_fnv1a16: - config.m_image_backend = "viu"; break; - default: return false; }