From 74404490b0a99a90ad86e90d34df33cb766aa5a6 Mon Sep 17 00:00:00 2001 From: Fadri Void Date: Sun, 1 Jan 2023 16:12:30 +0100 Subject: [PATCH 1/3] fixed the indentation, so the "-a" flag actually outputs --- src/funcs/drawing.nim | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/funcs/drawing.nim b/src/funcs/drawing.nim index 7ba4a4a..f58be10 100644 --- a/src/funcs/drawing.nim +++ b/src/funcs/drawing.nim @@ -72,16 +72,16 @@ proc drawInfo*(asciiArt: bool) = stdout.styledWrite(styleBright, coloredLogo[0], coloredLogo[1], color0) # colored out - stdout.styledWrite("\n", styleBright, " ╭───────────╮\n") - stdout.styledWrite(" │ ", color2, userIcon, color0, userCat, color1, userInfo, color0, "\n",) - if not isEmptyOrWhitespace(hostnameInfo): - stdout.styledWrite(" │ ", color2, hnameIcon, color0, hnameCat, color2, hostnameInfo, color0, "\n") - stdout.styledWrite(" │ ", color3, distroIcon, color0, distroCat, color3, distroInfo, color0, "\n") - stdout.styledWrite(" │ ", color4, kernelIcon, color0, kernelCat, color4, kernelInfo, color0, "\n") - stdout.styledWrite(" │ ", color5, uptimeIcon, color0, uptimeCat, color5, uptimeInfo, color0, "\n") - stdout.styledWrite(" │ ", color6, shellIcon, color0, shellCat, color6, shellInfo, color0, "\n") - stdout.styledWrite(" │ ", color1, pkgsIcon, color0, pkgsCat, color1, pkgsInfo, color0, "\n") - stdout.styledWrite(" │ ", color2, ramIcon, color0, ramCat, fgYellow, ramInfo, color0, "\n") - stdout.styledWrite(" ├───────────┤\n") - stdout.styledWrite(" │ ", color7, colorsIcon, color0, colorsCat, color7, dotIcon, " ", color1, dotIcon, " ", color2, dotIcon, " ", color3, dotIcon, " ", color4, dotIcon, " ", color5, dotIcon, " ", color6, dotIcon, " ", color8, dotIcon, color0, "\n") - stdout.styledWrite(" ╰───────────╯\n\n") \ No newline at end of file + stdout.styledWrite("\n", styleBright, " ╭───────────╮\n") + stdout.styledWrite(" │ ", color2, userIcon, color0, userCat, color1, userInfo, color0, "\n",) + if not isEmptyOrWhitespace(hostnameInfo): + stdout.styledWrite(" │ ", color2, hnameIcon, color0, hnameCat, color2, hostnameInfo, color0, "\n") + stdout.styledWrite(" │ ", color3, distroIcon, color0, distroCat, color3, distroInfo, color0, "\n") + stdout.styledWrite(" │ ", color4, kernelIcon, color0, kernelCat, color4, kernelInfo, color0, "\n") + stdout.styledWrite(" │ ", color5, uptimeIcon, color0, uptimeCat, color5, uptimeInfo, color0, "\n") + stdout.styledWrite(" │ ", color6, shellIcon, color0, shellCat, color6, shellInfo, color0, "\n") + stdout.styledWrite(" │ ", color1, pkgsIcon, color0, pkgsCat, color1, pkgsInfo, color0, "\n") + stdout.styledWrite(" │ ", color2, ramIcon, color0, ramCat, fgYellow, ramInfo, color0, "\n") + stdout.styledWrite(" ├───────────┤\n") + stdout.styledWrite(" │ ", color7, colorsIcon, color0, colorsCat, color7, dotIcon, " ", color1, dotIcon, " ", color2, dotIcon, " ", color3, dotIcon, " ", color4, dotIcon, " ", color5, dotIcon, " ", color6, dotIcon, " ", color8, dotIcon, color0, "\n") + stdout.styledWrite(" ╰───────────╯\n\n") From e9a7811799c6a96464f8a173e1c187f51d105a09 Mon Sep 17 00:00:00 2001 From: Fadri Void Date: Sun, 1 Jan 2023 16:13:37 +0100 Subject: [PATCH 2/3] added void linux ascii art --- src/assets/logos.nim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/assets/logos.nim b/src/assets/logos.nim index 35a5258..2493518 100644 --- a/src/assets/logos.nim +++ b/src/assets/logos.nim @@ -107,3 +107,10 @@ const / _// _ \/ _ / -_) _ `/ |/ / _ \/ // / __/ /_/ /\ \ /___/_//_/\_,_/\__/\_,_/|___/\___/\_,_/_/ \____/___/ """ + voidLogo* = r""" + + _ __ __ ___ + | |/ /___ /_/ _/ / + | | // _ \ / // _ / + |__/ \___//_/ \___/ + """ From e25c82e16ea728962e7b09cce063c1c3e97d4dd6 Mon Sep 17 00:00:00 2001 From: Fadri Void Date: Sun, 1 Jan 2023 16:13:57 +0100 Subject: [PATCH 3/3] void linux logo is green --- src/nitches/getLogo.nim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/nitches/getLogo.nim b/src/nitches/getLogo.nim index 0083184..275be7a 100644 --- a/src/nitches/getLogo.nim +++ b/src/nitches/getLogo.nim @@ -4,7 +4,7 @@ import func getLogo*(distroId: string): tuple = const - coloredLogos: array[15, tuple] = [ + coloredLogos: array[16, tuple] = [ (fgRed, nitchLogo), (fgBlue, archLogo), (fgRed, ubuntuLogo), @@ -19,7 +19,8 @@ func getLogo*(distroId: string): tuple = (fgYellow, centosLogo), (fgRed, redhatLogo), (fgMagenta, gentooLogo), - (fgMagenta, endeavourosLogo) + (fgMagenta, endeavourosLogo), + (fgGreen, voidLogo) ] case distroId: @@ -64,6 +65,9 @@ func getLogo*(distroId: string): tuple = of "endeavouros": result = coloredLogos[14] + + of "void": + result = coloredLogos[15] else: result = coloredLogos[0]