mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-16 07:56:12 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58b3e82346 | ||
|
|
ba67c074db |
@@ -0,0 +1,23 @@
|
|||||||
|
#/43;45;45;15
|
||||||
|
${C3}.${C1}-------------------------:
|
||||||
|
.${C2}+=${C1}========================.
|
||||||
|
:${C2}++${C1}===${C2}++===${C1}===============- :${C2}++${C1}-
|
||||||
|
:${C2}*++${C1}====${C2}+++++==${C1}===========- .==:
|
||||||
|
-${C2}*+++${C1}=====${C2}+***++=${C1}=========:
|
||||||
|
=${C2}*++++=${C1}=======------------:
|
||||||
|
=${C2}*+++++=${C1}====- ${C3}...${C1}
|
||||||
|
.${C2}+*+++++${C1}=-===: .${C2}=+++=${C1}:
|
||||||
|
:${C2}++++${C1}=====-==: -***${C2}**${C1}+
|
||||||
|
:${C2}++=${C1}=======-=. .=+**+${C3}.${C1}
|
||||||
|
.${C2}+${C1}==========-. ${C3}.${C1}
|
||||||
|
:${C2}+++++++${C1}====- ${C3}.${C1}--==-${C3}.${C1}
|
||||||
|
:${C2}++${C1}==========. ${C3}:${C2}+++++++${C1}${C3}:
|
||||||
|
${C1}.-===========. =*****+*+
|
||||||
|
${C1}.-===========: .+*****+:
|
||||||
|
${C1}-=======${C2}++++${C1}:::::::::::::::::::::::::-: ${C3}.${C1}---:
|
||||||
|
:======${C2}++++${C1}====${C2}+++******************=.
|
||||||
|
${C1}:=====${C2}+++${C1}==========${C2}++++++++++++++*-
|
||||||
|
${C1}.====${C2}++${C1}==============${C2}++++++++++*-
|
||||||
|
${C1}.===${C2}+${C1}==================${C2}+++++++:
|
||||||
|
${C1}.-=======================${C2}+++:
|
||||||
|
${C3}..........................
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
#/34;15;46;252
|
||||||
|
${C2} ...-:::::-...
|
||||||
|
${C2} .-MMMMMMMMMMMMMMM-.
|
||||||
|
.-MMMM${C1}`..-:::::::-..`${C2}MMMM-.
|
||||||
|
.:MMMM${C1}.:MMMMMMMMMMMMMMM:.${C2}MMMM:.
|
||||||
|
-MMM${C1}-M---MMMMMMMMMMMMMMMMMMM.${C2}MMM-
|
||||||
|
`:MMM${C1}:MM` :MMMM:....::-...-MMMM:${C2}MMM:`
|
||||||
|
:MMM${C1}:MMM` :MM:` `` `` `:MMM:${C2}MMM:
|
||||||
|
.MMM${C1}.MMMM` :MM. -MM. .MM- `MMMM.${C2}MMM.
|
||||||
|
:MMM${C1}:MMMM` :MM. -MM- .MM: `MMMM-${C2}MMM:
|
||||||
|
:MMM${C1}:MMMM` :MM. -MM- .MM: `MMMM:${C2}MMM:
|
||||||
|
:MMM${C1}:MMMM` :MM. -MM- .MM: `MMMM-${C2}MMM:
|
||||||
|
.MMM${C1}.MMMM` :MM:--:MM:--:MM: `MMMM.${C2}MMM.
|
||||||
|
:MMM${C1}:MMM- `-MMMMMMMMMMMM-` -MMM-${C2}MMM:
|
||||||
|
:MMM${C1}:MMM:` `:MMM:${C2}MMM:
|
||||||
|
.MMM${C1}.MMMM:--------------:MMMM.${C2}MMM.
|
||||||
|
'-MMMM${C1}.-MMMMMMMMMMMMMMM-.${C2}MMMM-'
|
||||||
|
'.-MMMM${C1}``--:::::--``${C2}MMMM-.'
|
||||||
|
${C2} '-MMMMMMMMMMMMM-'
|
||||||
|
${C2} ``-:::::-``
|
||||||
@@ -152,9 +152,19 @@ func readConfig() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
final := ""
|
final := ""
|
||||||
for lineIndex, line := range asciiSplit {
|
y := len(asciiSplit)
|
||||||
lineVisibleLength := len(strings.Split(asciiNoColor, "\n")[lineIndex])
|
if len(asciiSplit) < len(strings.Split(string(out), "\n")) {
|
||||||
|
y = len(strings.Split(string(out), "\n"))
|
||||||
|
}
|
||||||
|
for lineIndex := 0; lineIndex < y; lineIndex++ {
|
||||||
|
line := ""
|
||||||
|
for i := 0; i < maxWidth+5; i++ {
|
||||||
|
line = line + " "
|
||||||
|
}
|
||||||
lastAsciiColor := ""
|
lastAsciiColor := ""
|
||||||
|
if lineIndex < len(asciiSplit) {
|
||||||
|
line = asciiSplit[lineIndex]
|
||||||
|
lineVisibleLength := len(strings.Split(asciiNoColor, "\n")[lineIndex])
|
||||||
if lineIndex != 0 {
|
if lineIndex != 0 {
|
||||||
r := regexp.MustCompile("\033[38;5;[0-9]+m")
|
r := regexp.MustCompile("\033[38;5;[0-9]+m")
|
||||||
matches := r.FindAllString(asciiSplit[lineIndex-1], -1)
|
matches := r.FindAllString(asciiSplit[lineIndex-1], -1)
|
||||||
@@ -166,6 +176,7 @@ func readConfig() {
|
|||||||
line = line + " "
|
line = line + " "
|
||||||
}
|
}
|
||||||
asciiSplit[lineIndex] = lastAsciiColor + line
|
asciiSplit[lineIndex] = lastAsciiColor + line
|
||||||
|
}
|
||||||
str := string(out)
|
str := string(out)
|
||||||
if lineIndex < len(strings.Split(str, "\n")) {
|
if lineIndex < len(strings.Split(str, "\n")) {
|
||||||
line = line + colorMap["C0"] + strings.Split(str, "\n")[lineIndex]
|
line = line + colorMap["C0"] + strings.Split(str, "\n")[lineIndex]
|
||||||
|
|||||||
@@ -267,7 +267,6 @@ func GetDEWM() string {
|
|||||||
}
|
}
|
||||||
return strings.TrimSpace(string(out))
|
return strings.TrimSpace(string(out))
|
||||||
}
|
}
|
||||||
|
|
||||||
if processExists("plasmashell") {
|
if processExists("plasmashell") {
|
||||||
return "KDE Plasma " + runCommand("plasmashell --version | awk '{print $2}'")
|
return "KDE Plasma " + runCommand("plasmashell --version | awk '{print $2}'")
|
||||||
} else if processExists("gnome-session") {
|
} else if processExists("gnome-session") {
|
||||||
|
|||||||
Reference in New Issue
Block a user