@joddabod5scripts/pokemon-fastfetch 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +13 -17
- package/package.json +2 -2
- package/config-pokemon.jsonc +0 -78
package/bin/index.js
CHANGED
|
@@ -94,12 +94,13 @@ function ensureConfig() {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
function checkFastfetch() {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
// Using `command -v` works cross-platform on macOS, Linux, and BSD
|
|
98
|
+
const result = spawnSync('command', ['-v', 'fastfetch'], {
|
|
99
|
+
shell: true,
|
|
100
|
+
encoding: 'utf8',
|
|
101
|
+
});
|
|
102
|
+
if (result.status !== 0) {
|
|
103
|
+
console.error('fastfetch is not installed. To install it:\n');
|
|
103
104
|
console.error(' macOS: brew install fastfetch\n');
|
|
104
105
|
console.error(' Arch: sudo pacman -S fastfetch\n');
|
|
105
106
|
return 1;
|
|
@@ -108,17 +109,12 @@ function checkFastfetch() {
|
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
function checkPokemonColorscripts() {
|
|
111
|
-
const result = spawnSync('
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
console.error(
|
|
117
|
-
' git clone https://gitlab.com/phoneybadger/pokemon-colorscripts.git\n'
|
|
118
|
-
);
|
|
119
|
-
console.error(' cd pokemon-colorscripts\n');
|
|
120
|
-
console.error(' sudo ./install.sh\n');
|
|
121
|
-
console.error('Then verify the install by running: pokemon-colorscripts\n');
|
|
112
|
+
const result = spawnSync('command', ['-v', 'pokemon-colorscripts'], {
|
|
113
|
+
shell: true,
|
|
114
|
+
encoding: 'utf8',
|
|
115
|
+
});
|
|
116
|
+
if (result.status !== 0) {
|
|
117
|
+
console.error('pokemon-colorscripts is not installed.\n');
|
|
122
118
|
return 1;
|
|
123
119
|
}
|
|
124
120
|
return 0;
|
package/package.json
CHANGED
package/config-pokemon.jsonc
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
|
3
|
-
"logo": {
|
|
4
|
-
"height": 5,
|
|
5
|
-
"width": 10,
|
|
6
|
-
"padding": {
|
|
7
|
-
"top": 1
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"display": {
|
|
11
|
-
"separator": " -> "
|
|
12
|
-
},
|
|
13
|
-
"modules": [
|
|
14
|
-
"break",
|
|
15
|
-
{
|
|
16
|
-
"type": "title",
|
|
17
|
-
"keyWidth": 10,
|
|
18
|
-
"format": " {6}{7}{8}"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "custom",
|
|
22
|
-
"format": " ─────────────────────────── "
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "kernel",
|
|
26
|
-
"key": " ",
|
|
27
|
-
"keyColor": "yellow"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "wm",
|
|
31
|
-
"key": " ",
|
|
32
|
-
"keyColor": "blue"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"type": "shell",
|
|
36
|
-
"key": " ",
|
|
37
|
-
"keyColor": "yellow"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"type": "terminal",
|
|
41
|
-
"key": " ",
|
|
42
|
-
"keyColor": "blue"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "memory",
|
|
46
|
-
"key": " ",
|
|
47
|
-
"keyColor": "magenta",
|
|
48
|
-
"format": "{1} / {2}"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"type": "cpu",
|
|
52
|
-
"key": "",
|
|
53
|
-
"keyColor": "Green",
|
|
54
|
-
"format": "{1}"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"type": "gpu",
|
|
58
|
-
"key": "",
|
|
59
|
-
"keyColor": "Green",
|
|
60
|
-
"hideType": "integrated",
|
|
61
|
-
"format": "{2}"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"type": "uptime",
|
|
65
|
-
"key": " ",
|
|
66
|
-
"keyColor": "green"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"type": "custom",
|
|
70
|
-
"format": " ─────────────────────────── "
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "custom",
|
|
74
|
-
"format": " [31m [32m [33m [34m [35m [36m [37m [90m "
|
|
75
|
-
},
|
|
76
|
-
"break"
|
|
77
|
-
]
|
|
78
|
-
}
|