forked from kira64xyz/yafetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
46 lines (37 loc) · 1.19 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* Copyright (C) 2021 Ashley Chiara <[email protected]>
This file is part of yafetch.
yafetch is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
yafetch is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with yafetch; see the file COPYING. If not see
<http://www.gnu.org/licenses/>. */
#include <string>
#include "yafetch.h"
// Specify which ascii art the program uses
#include "ascii/gnu.h"
struct Colors {
std::string color = "\033[1;34m";
std::string hostcolor = "\033[1;36m";
std::string wrap(std::string str) {
return color + str + "\033[0m ";
}
std::string wraphost(std::string str) {
return hostcolor + str + "\033[0m\n";
}
};
// Specify which info to show
std::array<std::string(*)(), 7> info{
User,
OSName,
Host,
Kernel,
Packages,
Uptime,
Mem,
};