From dc30664001838c57c099b086fa7390f25122f3fd Mon Sep 17 00:00:00 2001 From: Andrea Boero Date: Mon, 6 Oct 2025 23:33:04 +0200 Subject: [PATCH] Added options to change multi-monitor taskbar behaviour (#346) Co-authored-by: Raphire <9938813+Raphire@users.noreply.github.com> --- Assets/Menus/Info | 1 + Get.ps1 | 2 + README.md | 1 + Regfiles/Combine_MMTaskbar_Always.reg | Bin 0 -> 318 bytes Regfiles/Combine_MMTaskbar_Never.reg | Bin 0 -> 318 bytes Regfiles/Combine_MMTaskbar_When_Full.reg | Bin 0 -> 318 bytes Regfiles/MMTaskbarMode_Active.reg | Bin 0 -> 308 bytes Regfiles/MMTaskbarMode_All.reg | Bin 0 -> 308 bytes Regfiles/MMTaskbarMode_Main_Active.reg | Bin 0 -> 308 bytes Win11Debloat.ps1 | 56 ++++++++++++++++++++++- 10 files changed, 59 insertions(+), 1 deletion(-) mode change 100644 => 100755 Assets/Menus/Info mode change 100644 => 100755 README.md create mode 100755 Regfiles/Combine_MMTaskbar_Always.reg create mode 100755 Regfiles/Combine_MMTaskbar_Never.reg create mode 100755 Regfiles/Combine_MMTaskbar_When_Full.reg create mode 100755 Regfiles/MMTaskbarMode_Active.reg create mode 100755 Regfiles/MMTaskbarMode_All.reg create mode 100755 Regfiles/MMTaskbarMode_Main_Active.reg mode change 100644 => 100755 Win11Debloat.ps1 diff --git a/Assets/Menus/Info b/Assets/Menus/Info old mode 100644 new mode 100755 index 8c59905..46b5e8f --- a/Assets/Menus/Info +++ b/Assets/Menus/Info @@ -43,6 +43,7 @@ File Explorer Taskbar - Align taskbar icons to the left. (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 the taskview button from the taskbar. (W11 only) - Disable widgets on the taskbar & lockscreen. diff --git a/Get.ps1 b/Get.ps1 index 93732ee..9840450 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -35,6 +35,8 @@ param ( [switch]$DisableAnimations, [switch]$TaskbarAlignLeft, [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]$HideTaskview, [switch]$DisableStartRecommended, diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 3469611..235f62a --- a/README.md +++ b/README.md @@ -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) - 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 the taskview button from the taskbar. (W11 only) - Disable widgets on the taskbar & lockscreen. diff --git a/Regfiles/Combine_MMTaskbar_Always.reg b/Regfiles/Combine_MMTaskbar_Always.reg new file mode 100755 index 0000000000000000000000000000000000000000..c1892289e2755ae04901872942a9337d9bc3b7a4 GIT binary patch literal 318 zcmY+9!D_-#5Jk_r;6I2TP~5l?x{y*7sxDHsltx6GC_zmmT4R5{?a31t@)+LSnYnlF z{QbU@k&{qRaimE^%EsD}6D2=ZUhHO~Lfm9#zqFf)b8&}9+P(%4AwC)KD(8a*&rH>e zL}Mo6DR1Txv46o@&5EUJsg;q6U*?6{*IvxMw^+SzC+hiJ?!A*(-{+#>G zH^jEo~<--2J66^XRe%s}FgaUuIwi@Em}%iG&g_vg;uJBcM9`Dg8P-BHSX*7?B= ux#ZOND>!VsYoMRRO)I{GgMOIX@L}JRJcU2j|Gb^YK)M1LB{;zV literal 0 HcmV?d00001 diff --git a/Regfiles/Combine_MMTaskbar_When_Full.reg b/Regfiles/Combine_MMTaskbar_When_Full.reg new file mode 100755 index 0000000000000000000000000000000000000000..81e0f5a57fbe4d2020f64953fc628572a7c7500b GIT binary patch literal 318 zcmY+9&1%9x6h_Zl@EyblD0bnd;G&dbq18pyikKp4O-oRd5`UsEubzx68HTyv{W*LJQF1c#YBf_8>K32YORJeWS9f`!<7v_ecg`E{&dgZw!bD!A z8ZuT-7#T;zz6HNBD-vm`nSsO~<3jeW7IW_{mbbT~?$4dQcM?lJ^3U4ox}%i&tn-5# ua>=RjS8&*N*FZmsn^t@W2mLU&;lsXzcTJm~6IGxsc?y55|9Lx)fpi5JA2`4O literal 0 HcmV?d00001 diff --git a/Regfiles/MMTaskbarMode_Active.reg b/Regfiles/MMTaskbarMode_Active.reg new file mode 100755 index 0000000000000000000000000000000000000000..e26e525c665ac3419ec6856c6425d68f13e6c4a5 GIT binary patch literal 308 zcmY+9&1%9x6h_aw;5$ejK&0TN(1nOlDCr_L6)_^#q$N}miQ3qgubzx68HTyv{WOLRV8>^+dQjZug^z?WLcgYK{&Ma6nA(fY? z-gsB1%#0H<-Xo^A!JBbR;#;wm*^o-h%|sHvj4RoHwS=y>MBcX@ZGY)(*GVGz%8`T9ZAUG0qVtOz oO3AtLIyfA6*)C62l^xwe49IPq~XuZ)M}}!)qOs!H&#n^r5-V0=;`qg?vfW?omsGELMks& zz45M2nHeW!zBOMmTQ<@PGqJ?2aV`5+%eeQJ$vfH6^;gc`JIN%U*|T%H>u6+-b^hyy oN^)Vm3JxQ8#roN}>4(qYAa*LZC*s++4UC+p@U!lBxAPe0ugkhNz5oCK literal 0 HcmV?d00001 diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 old mode 100644 new mode 100755 index 275153f..5d3e3d0 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -37,6 +37,8 @@ param ( [switch]$DisableAnimations, [switch]$TaskbarAlignLeft, [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]$HideTaskview, [switch]$DisableStartRecommended, @@ -1201,12 +1203,40 @@ function DisplayCustomModeOptions { switch ($TbCombineTaskbar) { '1' { AddParameter 'CombineTaskbarAlways' 'Always combine taskbar buttons and hide labels' + AddParameter 'CombineMMTaskbarAlways' 'Always combine taskbar buttons and hide labels in multi-monitor mode' } '2' { 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' { 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 } '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 } 'CombineTaskbarWhenFull' { @@ -1904,6 +1934,30 @@ switch ($script:Params.Keys) { RegImport "> Setting the taskbar to never combine buttons or hide labels..." "Combine_Taskbar_Never.reg" 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' { RegImport "> Hiding the search icon from the taskbar..." "Hide_Search_Taskbar.reg" continue