Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 0978e6f

Browse files
authored
Merge pull request #299 from JesusCrie/master
(Easter) Add a lovely message for arch users on the boot screen.
2 parents 5afea2d + 45e234f commit 0978e6f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/_renderer.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ let i = 0;
9191
displayLine();
9292

9393
function displayLine() {
94+
function isArchUser() {
95+
return require("os").platform() === "linux"
96+
&& fs.existsSync("/etc/os-release")
97+
&& fs.readFileSync("/etc/os-release").toString().includes("archlinux");
98+
}
99+
94100
if (log[i] === undefined) {
95101
setTimeout(resumeInit, 300);
96102
return;
@@ -114,6 +120,11 @@ function displayLine() {
114120
case i > 42 && i < 82:
115121
setTimeout(displayLine, 25);
116122
break;
123+
case i === 83:
124+
if (isArchUser())
125+
bootScreen.innerHTML += "btw i use arch<br/>";
126+
setTimeout(displayLine, 25);
127+
break;
117128
case i >= log.length-2 && i < log.length:
118129
setTimeout(displayLine, 300);
119130
break;

0 commit comments

Comments
 (0)