Skip to content

Commit 6b3ca90

Browse files
committed
config and args: add 'bottom' as value to logo-position
1 parent a9fd254 commit 6b3ca90

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

customfetch.1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Will only print the logo (if not disabled), along side the parsed OS and CPU
159159
Use GUI mode instead of priting in the terminal (use \fB\-V\fR to check if it's enabled)
160160
.TP
161161
\fB\-p\fR, \fB\-\-logo-position\fR <value>
162-
Position of the logo ("top" or "left")
162+
Position of the logo ("top" or "left" or "bottom")
163163
.TP
164164
\fB\-o\fR, \fB\-\-offset\fR <num>
165165
Offset between the ascii art and the system infos
@@ -188,6 +188,9 @@ Padding of the logo from the top
188188
\fB\-\-logo\-padding\-left\fR <num>
189189
Padding of the logo from the left
190190
.TP
191+
\fB\-\-layout\-padding\-top\fR <num>
192+
Padding of the layout from the top
193+
.TP
191194
\fB\-\-title\-sep\fR <string>
192195
A char (or string) to use in $<builtin.title_sep>
193196
.TP

include/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ sep-reset = ":"
258258
sep-reset-after = false
259259
260260
# Where the logo should be displayed.
261-
# Values: "top" or "left"
261+
# Values: "top" or "left" or "bottom"
262262
logo-position = "left"
263263
264264
# Offset between the ascii art and the layout

src/display.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,11 @@ std::vector<std::string> Display::render(const Config& config, const colors_t& c
336336
[](const std::string_view str) { return str.find(MAGIC_LINE) != std::string::npos; }),
337337
layout.end());
338338

339-
if (config.logo_position == "top")
339+
if (config.logo_position == "top" || config.logo_position == "bottom")
340340
{
341-
#if ANDROID_APP
342341
if (!asciiArt.empty())
343-
layout.insert(layout.begin(), asciiArt.begin(), asciiArt.end());
344-
#else
345-
Display::display(asciiArt);
346-
#endif
342+
layout.insert(config.logo_position == "top" ? layout.begin() : layout.end(),
343+
asciiArt.begin(), asciiArt.end());
347344
return layout;
348345
}
349346

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ A command-line system information tool (or neofetch like program), which its foc
117117
Will only print the logo (if not disabled), along side the parsed OS and CPU
118118
119119
-g, --gui Use GUI mode instead of printing in the terminal (use --version to check if it was enabled)
120-
-p, --logo-position <value> Position of the logo ("top" or "left")
120+
-p, --logo-position <value> Position of the logo ("top" or "left" or "bottom")
121121
-o, --offset <num> Offset between the ascii art and the layout
122122
-l. --list-modules Print the list of the modules and its members
123123
-h, --help Print this help menu
@@ -131,7 +131,7 @@ A command-line system information tool (or neofetch like program), which its foc
131131
--layout-padding-top <num> Padding of the layout from the top
132132
--title-sep <string> A char (or string) to use in $<builtin.title_sep>
133133
--sep-reset <string> A separator (or string) that when encountered, will automatically reset color
134-
--sep-reset-after [<num>] Reset color either before of after 'sep-reset' (1 = after && 0 = before)
134+
--sep-reset-after [<0,1>] Reset color either before (0) or after (1) 'sep-reset'
135135
--gen-config [<path>] Generate default config file to config folder (if path, it will generate to the path)
136136
Will ask for confirmation if file exists already
137137

0 commit comments

Comments
 (0)