diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c3dfe09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +test.ps1 \ No newline at end of file diff --git a/Fonts/Fira Code Bold Nerd Font Complete Mono Windows Compatible.otf b/Fonts/Fira Code Bold Nerd Font Complete Mono Windows Compatible.otf new file mode 100644 index 0000000..6a7339a Binary files /dev/null and b/Fonts/Fira Code Bold Nerd Font Complete Mono Windows Compatible.otf differ diff --git a/Fonts/Fira Code Bold Nerd Font Complete Mono Windows Compatible.ttf b/Fonts/Fira Code Bold Nerd Font Complete Mono Windows Compatible.ttf new file mode 100644 index 0000000..0485c09 Binary files /dev/null and b/Fonts/Fira Code Bold Nerd Font Complete Mono Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Bold Nerd Font Complete Windows Compatible.otf b/Fonts/Fira Code Bold Nerd Font Complete Windows Compatible.otf new file mode 100644 index 0000000..c8ec326 Binary files /dev/null and b/Fonts/Fira Code Bold Nerd Font Complete Windows Compatible.otf differ diff --git a/Fonts/Fira Code Bold Nerd Font Complete Windows Compatible.ttf b/Fonts/Fira Code Bold Nerd Font Complete Windows Compatible.ttf new file mode 100644 index 0000000..bef3694 Binary files /dev/null and b/Fonts/Fira Code Bold Nerd Font Complete Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Light Nerd Font Complete Mono Windows Compatible.otf b/Fonts/Fira Code Light Nerd Font Complete Mono Windows Compatible.otf new file mode 100644 index 0000000..c706360 Binary files /dev/null and b/Fonts/Fira Code Light Nerd Font Complete Mono Windows Compatible.otf differ diff --git a/Fonts/Fira Code Light Nerd Font Complete Mono Windows Compatible.ttf b/Fonts/Fira Code Light Nerd Font Complete Mono Windows Compatible.ttf new file mode 100644 index 0000000..599a8ef Binary files /dev/null and b/Fonts/Fira Code Light Nerd Font Complete Mono Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Light Nerd Font Complete Windows Compatible.otf b/Fonts/Fira Code Light Nerd Font Complete Windows Compatible.otf new file mode 100644 index 0000000..54c198b Binary files /dev/null and b/Fonts/Fira Code Light Nerd Font Complete Windows Compatible.otf differ diff --git a/Fonts/Fira Code Light Nerd Font Complete Windows Compatible.ttf b/Fonts/Fira Code Light Nerd Font Complete Windows Compatible.ttf new file mode 100644 index 0000000..88d60b5 Binary files /dev/null and b/Fonts/Fira Code Light Nerd Font Complete Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Medium Nerd Font Complete Mono Windows Compatible.otf b/Fonts/Fira Code Medium Nerd Font Complete Mono Windows Compatible.otf new file mode 100644 index 0000000..5109781 Binary files /dev/null and b/Fonts/Fira Code Medium Nerd Font Complete Mono Windows Compatible.otf differ diff --git a/Fonts/Fira Code Medium Nerd Font Complete Mono Windows Compatible.ttf b/Fonts/Fira Code Medium Nerd Font Complete Mono Windows Compatible.ttf new file mode 100644 index 0000000..9294d56 Binary files /dev/null and b/Fonts/Fira Code Medium Nerd Font Complete Mono Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Medium Nerd Font Complete Windows Compatible.otf b/Fonts/Fira Code Medium Nerd Font Complete Windows Compatible.otf new file mode 100644 index 0000000..2db48d4 Binary files /dev/null and b/Fonts/Fira Code Medium Nerd Font Complete Windows Compatible.otf differ diff --git a/Fonts/Fira Code Medium Nerd Font Complete Windows Compatible.ttf b/Fonts/Fira Code Medium Nerd Font Complete Windows Compatible.ttf new file mode 100644 index 0000000..9aaf690 Binary files /dev/null and b/Fonts/Fira Code Medium Nerd Font Complete Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Regular Nerd Font Complete Mono Windows Compatible.otf b/Fonts/Fira Code Regular Nerd Font Complete Mono Windows Compatible.otf new file mode 100644 index 0000000..4e4f754 Binary files /dev/null and b/Fonts/Fira Code Regular Nerd Font Complete Mono Windows Compatible.otf differ diff --git a/Fonts/Fira Code Regular Nerd Font Complete Mono Windows Compatible.ttf b/Fonts/Fira Code Regular Nerd Font Complete Mono Windows Compatible.ttf new file mode 100644 index 0000000..d29b180 Binary files /dev/null and b/Fonts/Fira Code Regular Nerd Font Complete Mono Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Regular Nerd Font Complete Windows Compatible.otf b/Fonts/Fira Code Regular Nerd Font Complete Windows Compatible.otf new file mode 100644 index 0000000..ed8c64d Binary files /dev/null and b/Fonts/Fira Code Regular Nerd Font Complete Windows Compatible.otf differ diff --git a/Fonts/Fira Code Regular Nerd Font Complete Windows Compatible.ttf b/Fonts/Fira Code Regular Nerd Font Complete Windows Compatible.ttf new file mode 100644 index 0000000..5c59280 Binary files /dev/null and b/Fonts/Fira Code Regular Nerd Font Complete Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Retina Nerd Font Complete Mono Windows Compatible.otf b/Fonts/Fira Code Retina Nerd Font Complete Mono Windows Compatible.otf new file mode 100644 index 0000000..0ef1123 Binary files /dev/null and b/Fonts/Fira Code Retina Nerd Font Complete Mono Windows Compatible.otf differ diff --git a/Fonts/Fira Code Retina Nerd Font Complete Mono Windows Compatible.ttf b/Fonts/Fira Code Retina Nerd Font Complete Mono Windows Compatible.ttf new file mode 100644 index 0000000..f3e0a60 Binary files /dev/null and b/Fonts/Fira Code Retina Nerd Font Complete Mono Windows Compatible.ttf differ diff --git a/Fonts/Fira Code Retina Nerd Font Complete Windows Compatible.otf b/Fonts/Fira Code Retina Nerd Font Complete Windows Compatible.otf new file mode 100644 index 0000000..23d3cc1 Binary files /dev/null and b/Fonts/Fira Code Retina Nerd Font Complete Windows Compatible.otf differ diff --git a/Fonts/Fira Code Retina Nerd Font Complete Windows Compatible.ttf b/Fonts/Fira Code Retina Nerd Font Complete Windows Compatible.ttf new file mode 100644 index 0000000..0757c47 Binary files /dev/null and b/Fonts/Fira Code Retina Nerd Font Complete Windows Compatible.ttf differ diff --git a/README.md b/README.md index 4644e2a..26bc9cb 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ Diese Software kann im Array $toInstall angepasst werden. Hier wird Software installiert, die nicht auf jeden Rechner den ich nutze installiert wird. Um flexibel zu bleiben fragt das Skript bei jedem Tool einzeln nach ob eine Installation gewünsch ist oder nicht. Diese Software kann im Array $toInstallOpt angepasst werden. +Es wird WSL mit Debian installiert. Falls diese Funktion benutzen werden soll muss +zwingend ein Neustart durchgeführt werden. ### Konfiguriere Windows @@ -44,6 +46,7 @@ Hier werden Windows Einstellungen modifiziert. - Erweitertest Kontextmenü im Explorer. - Optionale Installation eines Powershell CMDlets um Windows Updates zu installieren. + ### Update System Dieser Programmpunkt updatet alle Winget Pakete, installiert alle Windows Updates und aktuallisert auch alle Powershell CMDlets. diff --git a/config.ps1 b/config.ps1 index 8bbcb88..4587b72 100644 --- a/config.ps1 +++ b/config.ps1 @@ -1,7 +1,7 @@ # ===== WINFETCH CONFIGURATION ===== $noimage = $false -$image = "C:\Users\Tim\Pictures\morgana.jpg" +$image = "~/.winconfig/morgana.jpg" $ascii = $false diff --git a/install.ps1 b/install.ps1 index cdbfb0c..1dab5c9 100644 --- a/install.ps1 +++ b/install.ps1 @@ -32,11 +32,14 @@ $toRemove = @('Clipchamp.Clipchamp_yxz26nhyzhsrt', 'Microsoft.549981C3F5F10_8wek 'Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe', 'Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe', 'Micorosoft.MicrosoftStickyNotes_8wekyb3d8bbwe', 'Microsoft.People_8wekyb3d8bbwe', 'Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe', 'Microsoft.Todos_8wekyb3d8bbwe', 'Microsoft.Windows.Photos_8wekyb3d8bbwe', 'Microsoft.WindowsMaps_8wekyb3d8bbwe', 'Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe', 'Microsoft.WindowsAlarms_8wekyb3d8bbwe', 'Microsoft.YourPhone_8wekyb3d8bbwe', 'Microsoft.ZuneMusic_8wekyb3d8bbwe', 'Microsoft.ZuneVideo_8wekyb3d8bbwe', - 'MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'Microsoft.OneDrive', 'microsoft.windowscommunicationsapps_8wekyb3d8bbwe') + 'MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'Microsoft.OneDrive', 'microsoft.windowscommunicationsapps_8wekyb3d8bbwe','CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc') $toInstall = @('mcmilk.7zip-zstd', 'VideoLAN.VLC','SumatraPDF.SumatraPDF','Microsoft.VisualStudioCode','Bitwarden.Bitwarden','Mozilla.Firefox','IrfanSkiljan.IrfanView','Microsoft.PowerToys','OO-Software.ShutUp10' ,'Joplin.Joplin','WireGuard.WireGuard','Devolutions.RemoteDesktopManager','TeamViewer.TeamViewer') $toInstallOpt = @('Element.Element','CPUID.CPU-Z','Discord.Discord','Corsair.iCUE.4','Valve.Steam','GOG.Galaxy') + + + function Show-Menu { param ( [string]$Title = 'Software installation' @@ -59,7 +62,7 @@ do { foreach ($utility in $toRemove) { winget uninstall --id $utility } - + remove-item ~\Desktop* -include *.lnk } '2' { foreach ($utility in $toInstall) { $ergebnis = winget list --id $utility @@ -70,6 +73,7 @@ do { Write-Host "Programm $utility bereits installiert" } } + remove-item ~\Desktop* -include *.lnk Start-Process OOSU10 -NoNewWindow -Wait } '3' { foreach ($utility in $toInstallOpt) { @@ -88,6 +92,7 @@ do { wsl --install Write-Host "Installiere Debian" wsl --install -d Debian + Read-Host "Computer muss neugestartet werden!" } } '4' { $decision = $Host.UI.PromptForChoice('Explorer', 'Soll das Kontextmenü von Windows 10 wiederhergestellt werden?' , $choices, 1) @@ -104,18 +109,27 @@ do { if ($decision -eq 0) { Install-Module -Name PSWindowsUpdate -Force } - } + } + $decision = $Host.UI.PromptForChoice('Windows Termin', 'Soll das Windows Terminal eingerichtet werden?' , $choices, 1) + if ($decision -eq 0) { + New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/settings.json" + + Read-Host "Bitte das Terminal / Powershell neu starten damit Winfetch funktioniert." + + } + $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 + New-Item -Path "~/.config/winfetch/config.ps1" -ItemType SymbolicLink -Value "~/.winconfig/config.ps1" 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 + remove-item ~\Desktop* -include *.lnk if (Get-Module -ListAvailable -Name PSWindowsUpdate) { Write-Host "Installiere Windows Updates..." Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..cc269d3 --- /dev/null +++ b/settings.json @@ -0,0 +1,332 @@ +{ + "$help": "https://aka.ms/terminal-documentation", + "$schema": "https://aka.ms/terminal-profiles-schema", + "actions": + [ + { + "command": + { + "action": "copy", + "singleLine": false + }, + "keys": "ctrl+c" + }, + { + "command": "paste", + "keys": "ctrl+v" + }, + { + "command": "find", + "keys": "ctrl+shift+f" + }, + { + "command": + { + "action": "splitPane", + "split": "auto", + "splitMode": "duplicate" + }, + "keys": "alt+shift+d" + } + ], + "copyFormatting": "none", + "copyOnSelect": false, + "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", + "profiles": + { + "defaults": + { + "elevate": true + }, + "list": + [ + { + "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit \"winfetch\"", + "font": + { + "face": "FiraCode NF" + }, + "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", + "hidden": true, + "name": "Windows PowerShell" + }, + { + "commandline": "%SystemRoot%\\System32\\cmd.exe", + "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", + "hidden": true, + "name": "Eingabeaufforderung" + }, + { + "colorScheme": "Campbell", + "commandline": "C:\\Windows\\system32\\wsl.exe -d Debian", + "guid": "{40472ee0-a350-486b-bb34-f89c06fd6b14}", + "hidden": true, + "icon": "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png", + "name": "Debian", + "startingDirectory": "~" + }, + { + "guid": "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}", + "hidden": false, + "name": "Debian", + "source": "Windows.Terminal.Wsl" + } + ] + }, + "schemes": + [ + { + "background": "#0C0C0C", + "black": "#0C0C0C", + "blue": "#0037DA", + "brightBlack": "#767676", + "brightBlue": "#3B78FF", + "brightCyan": "#61D6D6", + "brightGreen": "#16C60C", + "brightPurple": "#B4009E", + "brightRed": "#E74856", + "brightWhite": "#F2F2F2", + "brightYellow": "#F9F1A5", + "cursorColor": "#FFFFFF", + "cyan": "#3A96DD", + "foreground": "#CCCCCC", + "green": "#13A10E", + "name": "Campbell", + "purple": "#881798", + "red": "#C50F1F", + "selectionBackground": "#FFFFFF", + "white": "#CCCCCC", + "yellow": "#C19C00" + }, + { + "background": "#012456", + "black": "#0C0C0C", + "blue": "#0037DA", + "brightBlack": "#767676", + "brightBlue": "#3B78FF", + "brightCyan": "#61D6D6", + "brightGreen": "#16C60C", + "brightPurple": "#B4009E", + "brightRed": "#E74856", + "brightWhite": "#F2F2F2", + "brightYellow": "#F9F1A5", + "cursorColor": "#FFFFFF", + "cyan": "#3A96DD", + "foreground": "#CCCCCC", + "green": "#13A10E", + "name": "Campbell Powershell", + "purple": "#881798", + "red": "#C50F1F", + "selectionBackground": "#FFFFFF", + "white": "#CCCCCC", + "yellow": "#C19C00" + }, + { + "background": "#282C34", + "black": "#282C34", + "blue": "#61AFEF", + "brightBlack": "#5A6374", + "brightBlue": "#61AFEF", + "brightCyan": "#56B6C2", + "brightGreen": "#98C379", + "brightPurple": "#C678DD", + "brightRed": "#E06C75", + "brightWhite": "#DCDFE4", + "brightYellow": "#E5C07B", + "cursorColor": "#FFFFFF", + "cyan": "#56B6C2", + "foreground": "#DCDFE4", + "green": "#98C379", + "name": "One Half Dark", + "purple": "#C678DD", + "red": "#E06C75", + "selectionBackground": "#FFFFFF", + "white": "#DCDFE4", + "yellow": "#E5C07B" + }, + { + "background": "#FAFAFA", + "black": "#383A42", + "blue": "#0184BC", + "brightBlack": "#4F525D", + "brightBlue": "#61AFEF", + "brightCyan": "#56B5C1", + "brightGreen": "#98C379", + "brightPurple": "#C577DD", + "brightRed": "#DF6C75", + "brightWhite": "#FFFFFF", + "brightYellow": "#E4C07A", + "cursorColor": "#4F525D", + "cyan": "#0997B3", + "foreground": "#383A42", + "green": "#50A14F", + "name": "One Half Light", + "purple": "#A626A4", + "red": "#E45649", + "selectionBackground": "#FFFFFF", + "white": "#FAFAFA", + "yellow": "#C18301" + }, + { + "background": "#002B36", + "black": "#002B36", + "blue": "#268BD2", + "brightBlack": "#073642", + "brightBlue": "#839496", + "brightCyan": "#93A1A1", + "brightGreen": "#586E75", + "brightPurple": "#6C71C4", + "brightRed": "#CB4B16", + "brightWhite": "#FDF6E3", + "brightYellow": "#657B83", + "cursorColor": "#FFFFFF", + "cyan": "#2AA198", + "foreground": "#839496", + "green": "#859900", + "name": "Solarized Dark", + "purple": "#D33682", + "red": "#DC322F", + "selectionBackground": "#FFFFFF", + "white": "#EEE8D5", + "yellow": "#B58900" + }, + { + "background": "#FDF6E3", + "black": "#002B36", + "blue": "#268BD2", + "brightBlack": "#073642", + "brightBlue": "#839496", + "brightCyan": "#93A1A1", + "brightGreen": "#586E75", + "brightPurple": "#6C71C4", + "brightRed": "#CB4B16", + "brightWhite": "#FDF6E3", + "brightYellow": "#657B83", + "cursorColor": "#002B36", + "cyan": "#2AA198", + "foreground": "#657B83", + "green": "#859900", + "name": "Solarized Light", + "purple": "#D33682", + "red": "#DC322F", + "selectionBackground": "#FFFFFF", + "white": "#EEE8D5", + "yellow": "#B58900" + }, + { + "background": "#2D2A2E", + "black": "#1A181A", + "blue": "#1080D0", + "brightBlack": "#707070", + "brightBlue": "#22D5FF", + "brightCyan": "#7ACCD7", + "brightGreen": "#A4CD7C", + "brightPurple": "#AB9DF2", + "brightRed": "#F882A5", + "brightWhite": "#E3E1E4", + "brightYellow": "#E5D37E", + "cursorColor": "#FFFFFF", + "cyan": "#3AA5D0", + "foreground": "#E3E1E4", + "green": "#7FCD2B", + "name": "Sonokai Shusia", + "purple": "#7C63F2", + "red": "#F82F66", + "selectionBackground": "#FFFFFF", + "white": "#E3E1E4", + "yellow": "#E5DE2D" + }, + { + "background": "#000000", + "black": "#000000", + "blue": "#3465A4", + "brightBlack": "#555753", + "brightBlue": "#729FCF", + "brightCyan": "#34E2E2", + "brightGreen": "#8AE234", + "brightPurple": "#AD7FA8", + "brightRed": "#EF2929", + "brightWhite": "#EEEEEC", + "brightYellow": "#FCE94F", + "cursorColor": "#FFFFFF", + "cyan": "#06989A", + "foreground": "#D3D7CF", + "green": "#4E9A06", + "name": "Tango Dark", + "purple": "#75507B", + "red": "#CC0000", + "selectionBackground": "#FFFFFF", + "white": "#D3D7CF", + "yellow": "#C4A000" + }, + { + "background": "#FFFFFF", + "black": "#000000", + "blue": "#3465A4", + "brightBlack": "#555753", + "brightBlue": "#729FCF", + "brightCyan": "#34E2E2", + "brightGreen": "#8AE234", + "brightPurple": "#AD7FA8", + "brightRed": "#EF2929", + "brightWhite": "#EEEEEC", + "brightYellow": "#FCE94F", + "cursorColor": "#000000", + "cyan": "#06989A", + "foreground": "#555753", + "green": "#4E9A06", + "name": "Tango Light", + "purple": "#75507B", + "red": "#CC0000", + "selectionBackground": "#FFFFFF", + "white": "#D3D7CF", + "yellow": "#C4A000" + }, + { + "background": "#300A24", + "black": "#171421", + "blue": "#0037DA", + "brightBlack": "#767676", + "brightBlue": "#08458F", + "brightCyan": "#2C9FB3", + "brightGreen": "#26A269", + "brightPurple": "#A347BA", + "brightRed": "#C01C28", + "brightWhite": "#F2F2F2", + "brightYellow": "#A2734C", + "cursorColor": "#FFFFFF", + "cyan": "#3A96DD", + "foreground": "#FFFFFF", + "green": "#26A269", + "name": "Ubuntu-ColorScheme", + "purple": "#881798", + "red": "#C21A23", + "selectionBackground": "#FFFFFF", + "white": "#CCCCCC", + "yellow": "#A2734C" + }, + { + "background": "#000000", + "black": "#000000", + "blue": "#000080", + "brightBlack": "#808080", + "brightBlue": "#0000FF", + "brightCyan": "#00FFFF", + "brightGreen": "#00FF00", + "brightPurple": "#FF00FF", + "brightRed": "#FF0000", + "brightWhite": "#FFFFFF", + "brightYellow": "#FFFF00", + "cursorColor": "#FFFFFF", + "cyan": "#008080", + "foreground": "#C0C0C0", + "green": "#008000", + "name": "Vintage", + "purple": "#800080", + "red": "#800000", + "selectionBackground": "#FFFFFF", + "white": "#C0C0C0", + "yellow": "#808000" + } + ] +} \ No newline at end of file