Skip to content

Commit 24ca268

Browse files
committed
Allow custom ASCII art using config file
1 parent aff73ca commit 24ca268

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

winfetch.ps1

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,24 @@ $defaultConfig = @'
116116
# $logo = "Windows 10"
117117
118118
# Specify width for image/logo
119-
# $imgwidth = 40
119+
# $imgwidth = 24
120+
121+
# Custom ASCII Art
122+
# This should be an array of strings, with positive
123+
# height and width equal to $imgwidth defined above.
124+
# $CustomAscii = @(
125+
# "⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⣿⣦⠀ ⠀"
126+
# "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣶⣶⣾⣷⣶⣆⠸⣿⣿⡟⠀ ⠀"
127+
# "⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣷⡈⠻⠿⠟⠻⠿⢿⣷⣤⣤⣄⠀⠀ ⠀"
128+
# "⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠈⠻⣿⣿⣦⠀ ⠀"
129+
# "⠀⠀⠀⢀⣤⣤⡘⢿⣿⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⡇ ⠀"
130+
# "⠀⠀⠀⣿⣿⣿⡇⢸⣿⡁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⣉⣉⡁ ⠀"
131+
# "⠀⠀⠀⠈⠛⠛⢡⣾⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⡇ ⠀"
132+
# "⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⠟⠀ ⠀"
133+
# "⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⡿⢁⣴⣶⣦⣴⣶⣾⡿⠛⠛⠋⠀⠀ ⠀"
134+
# "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠿⠿⢿⡿⠿⠏⢰⣿⣿⣧⠀⠀ ⠀"
135+
# "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣿⠟⠀⠀ ⠀"
136+
# )
120137
121138
# Make the logo blink
122139
# $blink = $true
@@ -386,6 +403,8 @@ $img = if (-not $noimage) {
386403
$Bitmap.Dispose()
387404
$OldImage.Dispose()
388405

406+
} elseif (($CustomAscii -is [Array]) -and ($CustomAscii.Length -gt 0)) {
407+
$CustomAscii
389408
} else {
390409
if (-not $logo) {
391410
if ($os -Like "*Windows 11 *") {

0 commit comments

Comments
 (0)