This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.ps1
92 lines (79 loc) · 4.09 KB
/
install.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Clear-Host
Write-Host " __ ___ _ _ _____ _ _ _ "
Write-Host " \ \ / (_) | | | | |_ _| | | | | |"
Write-Host " \ \ /\ / / _ _ __ | | __ _ _ __ __| | | | _ __ ___| |_ __ _| | |"
Write-Host " \ \/ \/ / | | '_ \| |/ _' | '_ \ / _' | | | | '_ \/ __| __/ _' | | |"
Write-Host " \ /\ / | | | | | | (_| | | | | (_| | _| |_| | | \__ \ || (_| | | |"
Write-Host " \/ \/ |_|_| |_|_|\__,_|_| |_|\__,_| |_____|_| |_|___/\__\__,_|_|_|"
Write-host ""
$important_question = "DO YOU HAVE POWERSHELL 7? (y/n)"
$important_answer = Read-Host -Prompt $important_question
$pwsh7_install = "Do you want to install powershell 7?(the rest of the script wont work without it) (y/n):"
if ($important_answer -eq 'n') {
$pwsh7 = Read-Host -Prompt $pwsh7_install
if ($pwsh7 -eq 'y') {
winget install Microsoft.PowerShell
pwsh
irm https://raw.githubusercontent.com/Welpyes/Welpyes-Dotfiles/main/install.ps1 | iex
} else {exit}
}
$question1 = "do you want to install yasb and its python dependencies do you want to proceed? (y/n)"
$response1 = Read-Host -Prompt $question1
$question2 = "do you want to install scoop(y/n)"
$response2 = Read-Host -Prompt $question2
Write-Host "if you put 'n' in the last prompt make sure to have scoop installed to install the apps listed below" -ForegroundColor Cyan
$question4 = "do you want to install python and the nerdfonts required?"
$response4 = Read-Host -Prompt $question4
$winland = "do you want to install komorebi, alt+drag, fetch and flow-launcher? (y/n)"
$response3 = Read-Host -Prompt $winland
if ($response2 -eq 'y') {
Write-Host "installing scoop and dependencies" -ForegroundColor Green
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install git
} else {
Write-Host "skipping scoop installation"
}
if ($response4 -eq 'y') {
Write-Host "installing python and the nerdfonts required..." -ForegroundColor Green
scoop update
scoop bucket add extras
scoop bucket add nerd-fonts
scoop install python JetBrainsMono-NF
} else {
Write-Host "skipping python and nerdfonts installation"
}
if ($response3 -eq 'y') {
Write-Host "installing komorebi, alt+drag, fetch and flow-launcher" -ForegroundColor Green
if ($response2 -eq 'n'){
scoop update
scoop bucket add extras
}
scoop install komorebi whkd altsnap flow-launcher
komorebic quickstart
Invoke-RestMethod https://raw.githubusercontent.com/Hexality/fetch/main/install.ps1 | Invoke-Expression
.$profile
}
if ($response1 -eq 'y') {
Write-Host "installing yasb..." -ForegroundColor Green
Set-Location -Path "$env:USERPROFILE"
git clone https://github.com/Welpyes/Welpyes-Dotfiles
mkdir "$env:USERPROFILE\.yasb"
Copy-Item "$env:USERPROFILE\welpyes-dotfiles\yasb-themes\simple\config.yaml" "$env:USERPROFILE\.yasb\"
Copy-Item "$env:USERPROFILE\welpyes-dotfiles\yasb-themes\simple\styles.css" "$env:USERPROFILE\.yasb\"
git clone https://github.com/Welpyes/welpyes-yasb
Set-Location -Path "$env:USERPROFILE\welpyes-yasb"
pip install -r requirements.txt
Clear-Host
Move-Item $env:USERPROFILE\welpyes-dotfiles\uninstall.ps1 $env:USERPROFILE
Write-Host "To run the status bar you can just run the run-silent.vbs file" -ForegroundColor Green
Write-Host "you can change the theme by using ./welpyes-dotfiles\theme-selector\main.ps1 in powershell" -ForegroundColor Green
Write-Host "I have placed the vbs script in your desktop, you can put it in your startup folder if you want"
Write-Host "the startup folder is found by using win+r and putting shell:startup"
Write-Host "to uninstall yasb you can ./uninstall.ps1" -ForegroundColor DarkRed
Remove-Item -Path "$env:USERPROFILE\welpyes-dotfiles\install.ps1"
Set-Location -Path "$env:USERPROFILE"
Copy-Item "welpyes-dotfiles\run-silent.vbs" "desktop"
./welpyes-dotfiles\run-silent.vbs
} else {
Write-Host "Installation cancelled."
}