Skip to content

Commit 72bc096

Browse files
committed
misc: update README.md and Makefile
1 parent 8c4d958 commit 72bc096

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MANPREFIX ?= $(PREFIX)/share/man
44
APPPREFIX ?= $(PREFIX)/share/applications
55
VARS ?=
66

7-
DEBUG ?= 0
7+
DEBUG ?= 1
88
GUI_MODE ?= 0
99
VENDOR_TEST ?= 0
1010
DEVICE_TEST ?= 0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
[![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/Toni500github/customfetch)](https://github.com/Toni500github/customfetch/commits)
21
[![GitHub top language](https://img.shields.io/github/languages/top/Toni500github/customfetch?logo=cplusplusbuilder&label=)](https://github.com/Toni500github/customfetch/blob/main/src)
32
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/Toni500github/customfetch/makefile.yml)](https://github.com/Toni500github/customfetch/actions)\
43
[![forthebadge](https://forthebadge.com/images/badges/works-on-my-machine.svg)](https://forthebadge.com)
@@ -252,11 +251,12 @@ bg-image = "/tmp/idk.png"
252251
```
253252

254253
We use the `config.toml` file, in there we got an array variable called "layout". That's the variable where you customize how the infos should be displayed.\
255-
You have 4 tags:
254+
You have 5 tags:
256255
* `$<module.member>` - Used for printing the value of a member of a module.
257256
* `${color}` - Used for displaying text in a specific color.
258257
* `$(bash command)` - Used to execute bash commands and print the output.
259258
* `$[something,equalToSomethingElse,iftrue,ifalse]` - Conditional tag to display different outputs based on the comparison.
259+
* `$%n1,n2%` - Used to print the percentage and print with colors
260260

261261
They can be used in the ascii art text file and layout, but how to use them?
262262

src/parse.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ std::string parse(const std::string_view input, systemInfo_t& systemInfo, std::s
303303
if (true_comma == command.npos)
304304
die("conditional tag {} doesn't have a comma for separiting the true statment", command);
305305

306-
const std::string& conditional = command.substr(0, conditional_comma);
307-
const std::string& equalto = command.substr(conditional_comma + 1, equalto_comma - conditional_comma - 1);
308-
const std::string& true_statment = command.substr(equalto_comma + 1, true_comma - equalto_comma - 1);
309-
const std::string& false_statment = command.substr(true_comma + 1);
306+
const std::string& conditional = command.substr(0, conditional_comma);
307+
const std::string& equalto = command.substr(conditional_comma + 1, equalto_comma - conditional_comma - 1);
308+
const std::string& true_statment = command.substr(equalto_comma + 1, true_comma - equalto_comma - 1);
309+
const std::string& false_statment = command.substr(true_comma + 1);
310310

311311
std::string _;
312312
const std::string& parsed_conditional = parse(conditional, systemInfo, _, config, colors, parsingLayout);

0 commit comments

Comments
 (0)