Winfetch config hinzugefuegt
This commit is contained in:
92
config.ps1
Normal file
92
config.ps1
Normal file
@@ -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"
|
||||||
|
)
|
||||||
10
install.ps1
10
install.ps1
@@ -104,7 +104,15 @@ do {
|
|||||||
if ($decision -eq 0) {
|
if ($decision -eq 0) {
|
||||||
Install-Module -Name PSWindowsUpdate -Force
|
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' {
|
} '5' {
|
||||||
Write-Host "Beginne mit dem Update aller Pakete..."
|
Write-Host "Beginne mit dem Update aller Pakete..."
|
||||||
winget upgrade --all --accept-package-agreements --accept-source-agreements
|
winget upgrade --all --accept-package-agreements --accept-source-agreements
|
||||||
|
|||||||
BIN
morgana.jpg
Normal file
BIN
morgana.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
Reference in New Issue
Block a user