diff --git a/config.ps1 b/config.ps1 new file mode 100644 index 0000000..8bbcb88 --- /dev/null +++ b/config.ps1 @@ -0,0 +1,92 @@ +# ===== WINFETCH CONFIGURATION ===== + +$noimage = $false +$image = "C:\Users\Tim\Pictures\morgana.jpg" + + +$ascii = $false +$memorystyle = 'bartext' +$diskstyle = 'bartext' +$cpustyle = 'bartext' + + +# Specify width for image/logo +# $imgwidth = 40 + +# Make the logo blink +# $blink = $true + +# Display all built-in info segments. +# $all = $true + +# Add a custom info line +# function info_custom_time { +# return @{ +# title = "Time" +# content = (Get-Date) +# } +# } + +# Configure which disks are shown +# $ShowDisks = @("C:", "D:") +# Show all available disks +# $ShowDisks = @("*") + +# Configure which package managers are shown +# disabling unused ones will improve speed +# $ShowPkgs = @("winget", "scoop", "choco") +$ShowPkgs = @("winget") + +# Use the following option to specify custom package managers. +# Create a function with that name as suffix, and which returns +# the number of packages. Two examples are shown here: +# $CustomPkgs = @("cargo", "just-install") +# function info_pkg_cargo { +# return (cargo install --list | Where-Object {$_ -like "*:" }).Length +# } +# function info_pkg_just-install { +# return (just-install list).Length +# } + +# Configure how to show info for levels +# Default is for text only. +# 'bar' is for bar only. +# 'textbar' is for text + bar. +# 'bartext' is for bar + text. +# $cpustyle = 'bar' +# $memorystyle = 'textbar' +# $diskstyle = 'bartext' +# $batterystyle = 'bartext' + + +# Remove the '#' from any of the lines in +# the following to **enable** their output. + +@( + "title" + "dashes" + "os" + "computer" + "kernel" + "motherboard" + # "custom_time" # use custom info line + "uptime" + # "ps_pkgs" # takes some time + "pkgs" + "pwsh" + "resolution" + "terminal" + # "theme" + "cpu" + "gpu" +# "cpu_usage" # takes some time + "memory" + "disk" + # "battery" + # "locale" + # "weather" + "local_ip" + # "public_ip" +# "blank" + # "colorbar" +) diff --git a/install.ps1 b/install.ps1 index 506650f..cdbfb0c 100644 --- a/install.ps1 +++ b/install.ps1 @@ -104,7 +104,15 @@ do { if ($decision -eq 0) { Install-Module -Name PSWindowsUpdate -Force } - } + } + $decision = $Host.UI.PromptForChoice('Winfetch', 'Soll Winfetch eingerichtet werden?' , $choices, 1) + if ($decision -eq 0) { + Install-Script winfetch + mkdir ~/.config/winfetch + Copy-Item ~/.winconfig/config.ps1 ~/.config/winfetch + Read-Host "Bitte das Terminal / Powershell neu starten damit Winfetch funktioniert." + + } } '5' { Write-Host "Beginne mit dem Update aller Pakete..." winget upgrade --all --accept-package-agreements --accept-source-agreements diff --git a/morgana.jpg b/morgana.jpg new file mode 100644 index 0000000..9f405e9 Binary files /dev/null and b/morgana.jpg differ