Skip to content

Commit

Permalink
misc: remove --kitty and --viu
Browse files Browse the repository at this point in the history
This may be breaking some compatibility with scripts that uses neofetch/fastfetch, but you can easely just -i <name>, e.g -i kitty
  • Loading branch information
Toni500github committed Sep 28, 2024
1 parent ef7f65b commit 5a2bece
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 0 additions & 6 deletions cufetch.1
Original file line number Diff line number Diff line change
Expand Up @@ -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 <string>
Replace instances of a color with another value.
.br
Expand Down
2 changes: 1 addition & 1 deletion include/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Config
std::vector<std::string> dpkg_files;
std::vector<std::string> apk_files;

// inner management
// inner management / argument configs
std::string m_custom_distro;
std::string m_image_backend;
bool m_disable_source = false;
Expand Down
12 changes: 2 additions & 10 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ A command-line system information tool (or neofetch like program), which its foc
-f, --font <name> 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 <name> (EXPERIMENTAL) Image backend tool for displaying images in terminal. Right now only 'kitty' and 'viu' are supported
-i, --image-backend <name> (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)
Expand All @@ -72,8 +73,6 @@ A command-line system information tool (or neofetch like program), which its foc
--sep-reset-after [<num>] Reset color either before of after 'sep-reset' (1 = after && 0 = before)
--gen-config [<path>] 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 <string> Replace instances of a color with another value.
Syntax MUST be "name=value" with no space beetween "=", example: --color "foo=#444333".
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5a2bece

Please sign in to comment.