Skip to content

Commit 2577078

Browse files
Update setup.ps1
fix indentation
1 parent dcadb1b commit 2577078

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

setup.ps1

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,18 @@ Write-Host "Finished installing powertoys!"
198198
$TaskbarLocation = $Host.UI.PromptForChoice("Move taskbar?", "(Default N)", @("&Y", "&N"), 1)
199199
if ($TaskbarLocation -eq 0) {
200200
$Location = $Host.UI.PromptForChoice("Where should the taskbar go?", "(Default Bottom)", @("Bottom", "&Top", "&Left", "&Right"), 0)
201-
$bit = 0;
202-
switch ($Location) {
203-
2 { $bit = 0x00 } # Left
204-
3 { $bit = 0x02 } # Right
205-
1 { $bit = 0x01 } # Top
206-
0 { $bit = 0x03 } # Bottom
207-
}
208-
$Settings = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 -Name Settings).Settings
209-
$Settings[12] = $bit
210-
Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 -Name Settings -Value $Settings
211-
Write-Host "Taskbar moved, restarting explorer"
212-
Get-Process explorer | Stop-Process
201+
$bit = 0;
202+
switch ($Location) {
203+
2 { $bit = 0x00 } # Left
204+
3 { $bit = 0x02 } # Right
205+
1 { $bit = 0x01 } # Top
206+
0 { $bit = 0x03 } # Bottom
207+
}
208+
$Settings = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 -Name Settings).Settings
209+
$Settings[12] = $bit
210+
Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 -Name Settings -Value $Settings
211+
Write-Host "Taskbar moved, restarting explorer"
212+
Get-Process explorer | Stop-Process
213213
}
214214
# end script
215215
Read-Host "Script Finished, press enter to exit"

0 commit comments

Comments
 (0)