diff --git a/Assets/Menus/Info b/Assets/Menus/Info index 15c918f..45acd02 100644 --- a/Assets/Menus/Info +++ b/Assets/Menus/Info @@ -42,6 +42,7 @@ File Explorer Taskbar - Align taskbar icons to the left. (W11 only) +- Choose combine mode for taskbar buttons and labels. (W11 only) - Hide or change the search icon/box on the taskbar. (W11 only) - Hide the taskview button from the taskbar. (W11 only) - Disable widgets on the taskbar & lockscreen. diff --git a/Get.ps1 b/Get.ps1 index d3ce039..e6382d2 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -35,6 +35,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, diff --git a/README.md b/README.md index 0e3f835..6b52c8c 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo #### Taskbar - Align taskbar icons to the left. (W11 only) +- Choose combine mode for taskbar buttons and labels. (W11 only) - Hide or change the search icon/box on the taskbar. (W11 only) - Hide the taskview button from the taskbar. (W11 only) - Disable widgets on the taskbar & lockscreen. diff --git a/Regfiles/Combine_Taskbar_Always.reg b/Regfiles/Combine_Taskbar_Always.reg new file mode 100644 index 0000000..d994d67 Binary files /dev/null and b/Regfiles/Combine_Taskbar_Always.reg differ diff --git a/Regfiles/Combine_Taskbar_Never.reg b/Regfiles/Combine_Taskbar_Never.reg new file mode 100644 index 0000000..bb0ef6f Binary files /dev/null and b/Regfiles/Combine_Taskbar_Never.reg differ diff --git a/Regfiles/Combine_Taskbar_When_Full.reg b/Regfiles/Combine_Taskbar_When_Full.reg new file mode 100644 index 0000000..0484abe Binary files /dev/null and b/Regfiles/Combine_Taskbar_When_Full.reg differ diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index c87540c..a21fac6 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -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