Skip to content

Commit

Permalink
Specify image width for different logos
Browse files Browse the repository at this point in the history
  • Loading branch information
rashil2000 authored Jan 21, 2022
1 parent cf8861e commit 8fa2210
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion winfetch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ $img = if (-not $noimage) {
}

if ($logo -eq "Windows 11") {
$COLUMNS = 32
@(
"${e}[${t};34mlllllllllllllll lllllllllllllll"
"${e}[${t};34mlllllllllllllll lllllllllllllll"
Expand All @@ -447,6 +448,7 @@ $img = if (-not $noimage) {
"${e}[${t};34mlllllllllllllll lllllllllllllll"
)
} elseif ($logo -eq "Windows 10" -Or $logo -eq "Windows 8.1" -Or $logo -eq "Windows 8") {
$COLUMNS = 34
@(
"${e}[${t};34m ....,,:;+ccllll"
"${e}[${t};34m ...,,+:; cllllllllllllllllll"
Expand All @@ -468,6 +470,7 @@ $img = if (-not $noimage) {
"${e}[${t};34m ````"
)
} elseif ($logo -eq "Windows 7" -Or $logo -eq "Windows Vista" -Or $logo -eq "Windows XP") {
$COLUMNS = 35
@(
"${e}[${t};31m ,.=:!!t3Z3z., "
"${e}[${t};31m :tt:::tt333EE3 "
Expand Down Expand Up @@ -744,7 +747,7 @@ function info_disk {
content = "(failed to get disk usage)"
})
}

if ($total -gt 0) {
$usage = [math]::floor(($used / $total * 100))
[void]$lines.Add(@{
Expand Down

0 comments on commit 8fa2210

Please sign in to comment.