From a368b4a8ba58840ed492b462834071c5f34bd20b Mon Sep 17 00:00:00 2001 From: Andrea Boero Date: Sat, 27 Sep 2025 14:34:01 +0200 Subject: [PATCH] Added an option to choose combine mode for Taskbar buttons (#329) --- Assets/Menus/Info | 1 + Get.ps1 | 1 + README.md | 1 + Regfiles/Combine_Taskbar_Always.reg | Bin 0 -> 314 bytes Regfiles/Combine_Taskbar_Never.reg | Bin 0 -> 314 bytes Regfiles/Combine_Taskbar_When_Full.reg | Bin 0 -> 314 bytes Win11Debloat.ps1 | 38 +++++++++++++++++++++++++ 7 files changed, 41 insertions(+) create mode 100644 Regfiles/Combine_Taskbar_Always.reg create mode 100644 Regfiles/Combine_Taskbar_Never.reg create mode 100644 Regfiles/Combine_Taskbar_When_Full.reg 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 0000000000000000000000000000000000000000..d994d67cdc4b992d91b964da57661587c9d2d88b GIT binary patch literal 314 zcmY+9&1%9>5QV?B;5 Aa2|UT}TlN{wz|pl%^D0qXadP_!E73+b_4ckjrrA%$zxM z=J)nSO2(3$k^>DQ64urZ94WY3>Dx_3xwygHeqlEiXW|Ym+P*rq5FflSbmpBeo|&l^ zi6%_NGhWRjV*i|#nk5U>5-VdBf6Q~W|9dfy-eUDmGAe%N?4y%dvqGB>(^b literal 0 HcmV?d00001 diff --git a/Regfiles/Combine_Taskbar_Never.reg b/Regfiles/Combine_Taskbar_Never.reg new file mode 100644 index 0000000000000000000000000000000000000000..bb0ef6f16f13084b663d5e420ce0b83db0ce8618 GIT binary patch literal 314 zcmY+9&1%9>5Jt~h=sSoHAf?ca;G&4MP<0WtB8`+-ql9WA@h9!eYfr8#xm@miGvAz< zd%eua$XQWPaiB>=%EsJ*BPD-k`c^Ylp>FbFy|kLCbM-TA9z72YGx?$+qjT@tHs>!7Rx*7sQtOU_nX9$f7!FOyLOZ^U)=oc sgj{lJya*e%+$C|!56dw9HT3Kl=sA10wCL)t0%=7j{ICAw?K}m_KQ~A?CjbBd literal 0 HcmV?d00001 diff --git a/Regfiles/Combine_Taskbar_When_Full.reg b/Regfiles/Combine_Taskbar_When_Full.reg new file mode 100644 index 0000000000000000000000000000000000000000..0484abe9e431ae63b2c31c4e86330a8ac3d642ba GIT binary patch literal 314 zcmY+9&1%9>5Jt~h=sSoHAnl?X!9@{iq3R-PMH(rwMhVqK;!oO_*PdKga=G03X1+Ny z_j;L;k+Y(p;y{y#l#RIqM@s(8^sQ#9Lfz!UdTBLN=jvzLJbE5zg!{=G@Al03qQ_KT zq#7|%PZ=9W#J&YC7h|FUOmckL);zPS0> s3AyCdco8;ixl7`dAC_VIYv|cA&~x@~Y0=eP1=5O6_+S0U+j$CXxnCIA2c literal 0 HcmV?d00001 diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index a41b073..f75a13b 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