mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Added an option to choose combine mode for Taskbar buttons (#329)
This commit is contained in:
@@ -37,6 +37,7 @@ param (
|
||||
[switch]$DisableTransparency,
|
||||
[switch]$DisableAnimations,
|
||||
[switch]$TaskbarAlignLeft,
|
||||
[switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever,
|
||||
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
||||
[switch]$HideTaskview,
|
||||
[switch]$DisableStartRecommended,
|
||||
@@ -1176,6 +1177,31 @@ function DisplayCustomModeOptions {
|
||||
AddParameter 'TaskbarAlignLeft' 'Align taskbar icons to the left'
|
||||
}
|
||||
|
||||
# Show options for combine icon on taskbar, only continue on valid input
|
||||
Do {
|
||||
Write-Output ""
|
||||
Write-Host " Options:" -ForegroundColor Yellow
|
||||
Write-Host " (n) No change" -ForegroundColor Yellow
|
||||
Write-Host " (1) Always" -ForegroundColor Yellow
|
||||
Write-Host " (2) When taskbar is full" -ForegroundColor Yellow
|
||||
Write-Host " (3) Never" -ForegroundColor Yellow
|
||||
$TbCombineTaskbar = Read-Host " Combine taskbar buttons and hide labels? (n/1/2/3)"
|
||||
}
|
||||
while ($TbCombineTaskbar -ne 'n' -and $TbCombineTaskbar -ne '0' -and $TbCombineTaskbar -ne '1' -and $TbCombineTaskbar -ne '2' -and $TbCombineTaskbar -ne '3')
|
||||
|
||||
# Select correct taskbar goup option based on user input
|
||||
switch ($TbCombineTaskbar) {
|
||||
'1' {
|
||||
AddParameter 'CombineTaskbarAlways' 'Always combine taskbar buttons and hide labels'
|
||||
}
|
||||
'2' {
|
||||
AddParameter 'CombineTaskbarWhenFull' 'Combine taskbar buttons and hide labels when taskbar is full'
|
||||
}
|
||||
'3' {
|
||||
AddParameter 'CombineTaskbarNever' 'Never combine taskbar buttons and show labels'
|
||||
}
|
||||
}
|
||||
|
||||
# Show options for search icon on taskbar, only continue on valid input
|
||||
Do {
|
||||
Write-Output ""
|
||||
@@ -1856,6 +1882,18 @@ switch ($script:Params.Keys) {
|
||||
RegImport "> Aligning taskbar buttons to the left..." "Align_Taskbar_Left.reg"
|
||||
continue
|
||||
}
|
||||
'CombineTaskbarAlways' {
|
||||
RegImport "> Setting the taskbar to always combine buttons and hide labels..." "Combine_Taskbar_Never.reg"
|
||||
continue
|
||||
}
|
||||
'CombineTaskbarWhenFull' {
|
||||
RegImport "> Setting the taskbar to only combine buttons and hide labels when the taskbar is full..." "Combine_Taskbar_When_Full.reg"
|
||||
continue
|
||||
}
|
||||
'CombineTaskbarNever' {
|
||||
RegImport "> Setting the taskbar to never combine buttons or hide labels..." "Combine_Taskbar_Never.reg"
|
||||
continue
|
||||
}
|
||||
'HideSearchTb' {
|
||||
RegImport "> Hiding the search icon from the taskbar..." "Hide_Search_Taskbar.reg"
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user