Added options to change multi-monitor taskbar behaviour (#346)

Co-authored-by: Raphire <9938813+Raphire@users.noreply.github.com>
This commit is contained in:
Andrea Boero
2025-10-06 23:33:04 +02:00
committed by GitHub
parent 5ae374dff3
commit dc30664001
10 changed files with 59 additions and 1 deletions

1
Assets/Menus/Info Normal file → Executable file
View File

@@ -43,6 +43,7 @@ File Explorer
Taskbar Taskbar
- Align taskbar icons to the left. (W11 only) - Align taskbar icons to the left. (W11 only)
- Choose combine mode for taskbar buttons and labels. (W11 only) - Choose combine mode for taskbar buttons and labels. (W11 only)
- Choose how app icons are shown on the taskbar when using multiple monitors. (W11 only)
- Hide or change the search icon/box on the taskbar. (W11 only) - Hide or change the search icon/box on the taskbar. (W11 only)
- Hide the taskview button from the taskbar. (W11 only) - Hide the taskview button from the taskbar. (W11 only)
- Disable widgets on the taskbar & lockscreen. - Disable widgets on the taskbar & lockscreen.

View File

@@ -35,6 +35,8 @@ param (
[switch]$DisableAnimations, [switch]$DisableAnimations,
[switch]$TaskbarAlignLeft, [switch]$TaskbarAlignLeft,
[switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever, [switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever,
[switch]$CombineMMTaskbarAlways, [switch]$CombineMMTaskbarWhenFull, [switch]$CombineMMTaskbarNever,
[switch]$MMTaskbarModeAll, [switch]$MMTaskbarModeMainActive, [switch]$MMTaskbarModeActive,
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb, [switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
[switch]$HideTaskview, [switch]$HideTaskview,
[switch]$DisableStartRecommended, [switch]$DisableStartRecommended,

1
README.md Normal file → Executable file
View File

@@ -137,6 +137,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
- Align taskbar icons to the left. (W11 only) - Align taskbar icons to the left. (W11 only)
- Choose combine mode for taskbar buttons and labels. (W11 only) - Choose combine mode for taskbar buttons and labels. (W11 only)
- Choose how app icons are shown on the taskbar when using multiple monitors. (W11 only)
- Hide or change the search icon/box on the taskbar. (W11 only) - Hide or change the search icon/box on the taskbar. (W11 only)
- Hide the taskview button from the taskbar. (W11 only) - Hide the taskview button from the taskbar. (W11 only)
- Disable widgets on the taskbar & lockscreen. - Disable widgets on the taskbar & lockscreen.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Regfiles/MMTaskbarMode_Active.reg Executable file

Binary file not shown.

BIN
Regfiles/MMTaskbarMode_All.reg Executable file

Binary file not shown.

Binary file not shown.

56
Win11Debloat.ps1 Normal file → Executable file
View File

@@ -37,6 +37,8 @@ param (
[switch]$DisableAnimations, [switch]$DisableAnimations,
[switch]$TaskbarAlignLeft, [switch]$TaskbarAlignLeft,
[switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever, [switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever,
[switch]$CombineMMTaskbarAlways, [switch]$CombineMMTaskbarWhenFull, [switch]$CombineMMTaskbarNever,
[switch]$MMTaskbarModeAll, [switch]$MMTaskbarModeMainActive, [switch]$MMTaskbarModeActive,
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb, [switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
[switch]$HideTaskview, [switch]$HideTaskview,
[switch]$DisableStartRecommended, [switch]$DisableStartRecommended,
@@ -1201,12 +1203,40 @@ function DisplayCustomModeOptions {
switch ($TbCombineTaskbar) { switch ($TbCombineTaskbar) {
'1' { '1' {
AddParameter 'CombineTaskbarAlways' 'Always combine taskbar buttons and hide labels' AddParameter 'CombineTaskbarAlways' 'Always combine taskbar buttons and hide labels'
AddParameter 'CombineMMTaskbarAlways' 'Always combine taskbar buttons and hide labels in multi-monitor mode'
} }
'2' { '2' {
AddParameter 'CombineTaskbarWhenFull' 'Combine taskbar buttons and hide labels when taskbar is full' AddParameter 'CombineTaskbarWhenFull' 'Combine taskbar buttons and hide labels when taskbar is full'
AddParameter 'CombineMMTaskbarWhenFull' 'Combine taskbar buttons and hide labels when taskbar is full in multi-monitor mode'
} }
'3' { '3' {
AddParameter 'CombineTaskbarNever' 'Never combine taskbar buttons and show labels' AddParameter 'CombineTaskbarNever' 'Never combine taskbar buttons and show labels'
AddParameter 'CombineMMTaskbarNever' 'Never combine taskbar buttons and show labels in multi-monitor mode'
}
}
# Show options for show icon on taskbar in multi-monitor mode, only continue on valid input
Do {
Write-Output ""
Write-Host " Options:" -ForegroundColor Yellow
Write-Host " (n) No change" -ForegroundColor Yellow
Write-Host " (1) Show apps icons on all taskbars" -ForegroundColor Yellow
Write-Host " (2) Show apps icons on main taskbar and on taskbar where the windows is open" -ForegroundColor Yellow
Write-Host " (3) Show apps icons only on taskbar where the window is open" -ForegroundColor Yellow
$TbCombineTaskbar = Read-Host " Change how to show app icons on the taskbar when using multiple monitors? (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 'MMTaskbarModeAll' 'Show apps icons on all taskbars'
}
'2' {
AddParameter 'MMTaskbarModeMainActive' 'Show apps icons on main taskbar and on taskbar where the windows is open'
}
'3' {
AddParameter 'MMTaskbarModeActive' 'Show apps icons only on taskbar where the window is open'
} }
} }
@@ -1893,7 +1923,7 @@ switch ($script:Params.Keys) {
continue continue
} }
'CombineTaskbarAlways' { 'CombineTaskbarAlways' {
RegImport "> Setting the taskbar to always combine buttons and hide labels..." "Combine_Taskbar_Never.reg" RegImport "> Setting the taskbar to always combine buttons and hide labels..." "Combine_Taskbar_Always.reg"
continue continue
} }
'CombineTaskbarWhenFull' { 'CombineTaskbarWhenFull' {
@@ -1904,6 +1934,30 @@ switch ($script:Params.Keys) {
RegImport "> Setting the taskbar to never combine buttons or hide labels..." "Combine_Taskbar_Never.reg" RegImport "> Setting the taskbar to never combine buttons or hide labels..." "Combine_Taskbar_Never.reg"
continue continue
} }
'CombineMMTaskbarAlways' {
RegImport "> Setting the taskbar to always combine buttons and hide labels in multi-monitor mode..." "Combine_MMTaskbar_Always.reg"
continue
}
'CombineMMTaskbarWhenFull' {
RegImport "> Setting the taskbar to only combine buttons and hide labels when the taskbar is ful in multi-monitor mode..." "Combine_MMTaskbar_When_Full.reg"
continue
}
'CombineMMTaskbarNever' {
RegImport "> Setting the taskbar to never combine buttons or hide labels in multi-monitor mode..." "Combine_MMTaskbar_Never.reg"
continue
}
'MMTaskbarModeAll' {
RegImport "> Setting the taskbar to only show icons on main taskbar in multi-monitor mode..." "MMTaskbarMode_All.reg"
continue
}
'MMTaskbarModeMainActive' {
RegImport "> Setting the taskbar to show icons on all taskbars in multi-monitor mode..." "MMTaskbarMode_Main_Active.reg"
continue
}
'MMTaskbarModeActive' {
RegImport "> Setting the taskbar to only show apps on the taskbar where the window is open in multi-monitor mode..." "MMTaskbarMode_Active.reg"
continue
}
'HideSearchTb' { 'HideSearchTb' {
RegImport "> Hiding the search icon from the taskbar..." "Hide_Search_Taskbar.reg" RegImport "> Hiding the search icon from the taskbar..." "Hide_Search_Taskbar.reg"
continue continue