mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Add "Last Active Click" Taskbar Behaviour Option (#280)
This commit is contained in:
@@ -42,6 +42,7 @@ Taskbar
|
|||||||
- Disable the widgets service & hide icon from the taskbar.
|
- Disable the widgets service & hide icon from the taskbar.
|
||||||
- Hide the chat (meet now) icon from the taskbar.
|
- Hide the chat (meet now) icon from the taskbar.
|
||||||
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
|
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
|
||||||
|
- Enable the 'Last Active Click' behavior in the taskbar app area.
|
||||||
|
|
||||||
Start
|
Start
|
||||||
- Disable & hide the recommended section in the start menu. (W11 only)
|
- Disable & hide the recommended section in the start menu. (W11 only)
|
||||||
|
|||||||
1
Get.ps1
1
Get.ps1
@@ -41,6 +41,7 @@ param (
|
|||||||
[switch]$DisableWidgets, [switch]$HideWidgets,
|
[switch]$DisableWidgets, [switch]$HideWidgets,
|
||||||
[switch]$DisableChat, [switch]$HideChat,
|
[switch]$DisableChat, [switch]$HideChat,
|
||||||
[switch]$EnableEndTask,
|
[switch]$EnableEndTask,
|
||||||
|
[switch]$EnableLastActiveClick,
|
||||||
[switch]$ClearStart,
|
[switch]$ClearStart,
|
||||||
[string]$ReplaceStart,
|
[string]$ReplaceStart,
|
||||||
[switch]$ClearStartAllUsers,
|
[switch]$ClearStartAllUsers,
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
|
|||||||
- Disable the widgets service & hide icon from the taskbar.
|
- Disable the widgets service & hide icon from the taskbar.
|
||||||
- Hide the chat (meet now) icon from the taskbar.
|
- Hide the chat (meet now) icon from the taskbar.
|
||||||
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
|
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
|
||||||
|
- Enable the 'Last Active Click' behavior in the taskbar app area. This allows you to repeatedly click on an application's icon in the taskbar to switch focus between multiple active windows for that application.
|
||||||
|
|
||||||
#### Start
|
#### Start
|
||||||
- Disable & hide the recommended section in the start menu. (W11 only)
|
- Disable & hide the recommended section in the start menu. (W11 only)
|
||||||
|
|||||||
16
Regfiles/Enable_Last_Active_Click.reg
Normal file
16
Regfiles/Enable_Last_Active_Click.reg
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; When clicking the icon of a a running application in the taskbar (that
|
||||||
|
; currently has multiple windows open), typically a pop-up will appear showing
|
||||||
|
; the multiple windows, and you'll have to click a second time to select the
|
||||||
|
; window you want to focus on.
|
||||||
|
;
|
||||||
|
; This registry hack instead turns the icon click into a "focus on the last
|
||||||
|
; active window" action. You can click it repeatedly to cycle focus through all
|
||||||
|
; the windows open for that application.
|
||||||
|
;
|
||||||
|
; With this enabled, the pop-up window display will still show if you hover
|
||||||
|
; your mouse over the taskbar icon.
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
|
||||||
|
"LastActiveClick"=dword:00000001
|
||||||
16
Regfiles/Sysprep/Enable_Last_Active_Click.reg
Normal file
16
Regfiles/Sysprep/Enable_Last_Active_Click.reg
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; When clicking the icon of a a running application in the taskbar (that
|
||||||
|
; currently has multiple windows open), typically a pop-up will appear showing
|
||||||
|
; the multiple windows, and you'll have to click a second time to select the
|
||||||
|
; window you want to focus on.
|
||||||
|
;
|
||||||
|
; This registry hack instead turns the icon click into a "focus on the last
|
||||||
|
; active window" action. You can click it repeatedly to cycle focus through all
|
||||||
|
; the windows open for that application.
|
||||||
|
;
|
||||||
|
; With this enabled, the pop-up window display will still show if you hover
|
||||||
|
; your mouse over the taskbar icon.
|
||||||
|
|
||||||
|
[HKEY_USERS\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
|
||||||
|
"LastActiveClick"=dword:00000001
|
||||||
8
Regfiles/Undo/Disable_Last_Active_Click.reg
Normal file
8
Regfiles/Undo/Disable_Last_Active_Click.reg
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; This disables the last-active-click action for the taskbar.
|
||||||
|
; (Please see the `Enable_Last_Active_Click.reg` file for an
|
||||||
|
; explanation of what this undoes.)
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
|
||||||
|
"LastActiveClick"=-
|
||||||
@@ -43,6 +43,7 @@ param (
|
|||||||
[switch]$DisableWidgets, [switch]$HideWidgets,
|
[switch]$DisableWidgets, [switch]$HideWidgets,
|
||||||
[switch]$DisableChat, [switch]$HideChat,
|
[switch]$DisableChat, [switch]$HideChat,
|
||||||
[switch]$EnableEndTask,
|
[switch]$EnableEndTask,
|
||||||
|
[switch]$EnableLastActiveClick,
|
||||||
[switch]$ClearStart,
|
[switch]$ClearStart,
|
||||||
[string]$ReplaceStart,
|
[string]$ReplaceStart,
|
||||||
[switch]$ClearStartAllUsers,
|
[switch]$ClearStartAllUsers,
|
||||||
@@ -1095,6 +1096,11 @@ function DisplayCustomModeOptions {
|
|||||||
AddParameter 'EnableEndTask' "Enable the 'End Task' option in the taskbar right click menu"
|
AddParameter 'EnableEndTask' "Enable the 'End Task' option in the taskbar right click menu"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
if ($( Read-Host -Prompt " Enable the 'Last Active Click' behavior in the taskbar app area? (y/n)" ) -eq 'y') {
|
||||||
|
AddParameter 'EnableLastActiveClick' "Enable the 'Last Active Click' behavior in the taskbar app area"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
@@ -1677,6 +1683,10 @@ switch ($script:Params.Keys) {
|
|||||||
RegImport "> Enabling the 'End Task' option in the taskbar right click menu..." "Enable_End_Task.reg"
|
RegImport "> Enabling the 'End Task' option in the taskbar right click menu..." "Enable_End_Task.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
'EnableLastActiveClick' {
|
||||||
|
RegImport "> Enabling the 'Last Active Click' behavior in the taskbar app area..." "Enable_Last_Active_Click.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
'ExplorerToHome' {
|
'ExplorerToHome' {
|
||||||
RegImport "> Changing the default location that File Explorer opens to `Home`..." "Launch_File_Explorer_To_Home.reg"
|
RegImport "> Changing the default location that File Explorer opens to `Home`..." "Launch_File_Explorer_To_Home.reg"
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user