diff --git a/Assets/Menus/Info b/Assets/Menus/Info index 990cb1e..6f6bc76 100644 --- a/Assets/Menus/Info +++ b/Assets/Menus/Info @@ -19,6 +19,14 @@ Bing, Copilot & More - Disable & remove Microsoft Copilot. (W11 only) - Disable Windows Recall snapshots. (W11 only) +Personalisation +- Enable Dark Mode. +- Disable transparency, animations and visual effects. +- Turn off Enhance Pointer Precision, also known as mouse acceleration. +- Disable the Sticky Keys keyboard shortcut. (W11 only) +- Restore the old Windows 10 style context menu. (W11 only) +- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only) + File Explorer - Change the default location that File Explorer opens to. - Show hidden files, folders & drives. @@ -39,17 +47,11 @@ Start - Disable & hide the recommended section in the start menu. (W11 only) - Disable the Phone Link mobile devices integration in the start menu. (W11 only) -Context menu -- Restore the old Windows 10 style context menu. (W11 only) -- Hide the 'Include in library', 'Give access to' & 'Share' options from the context menu. (W10 only) - Other - Disable Xbox game/screen recording, this also stops gaming overlay popups. -- Turn off Enhance Pointer Precision, also known as mouse acceleration. - Disable Fast Start-up to ensure a full shutdown. -- Disable the Sticky Keys keyboard shortcut. (W11 only) - Option to apply changes to a different user, instead of the currently logged in user. -- Sysprep mode to apply changes to the Windows Default user profile. +- Sysprep mode to apply changes to the Windows Default user profile. ------------------------------------------------------------------------------------------- Default mode diff --git a/Get.ps1 b/Get.ps1 index 25ca83d..3969adc 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -28,6 +28,9 @@ param ( [switch]$ShowHiddenFolders, [switch]$ShowKnownFileExt, [switch]$HideDupliDrive, + [switch]$EnableDarkMode, + [switch]$DisableTransparency, + [switch]$DisableAnimations, [switch]$TaskbarAlignLeft, [switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb, [switch]$HideTaskview, diff --git a/README.md b/README.md index 73e6427..1661cfd 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,15 @@ Below is an overview of the key features and functionality offered by Win11Deblo - Disable & remove Microsoft Copilot. (W11 only) - Disable Windows Recall snapshots. (W11 only) +#### Personalisation + +- Enable Dark Mode. +- Disable transparency, animations and visual effects. +- Turn off Enhance Pointer Precision, also known as mouse acceleration. +- Disable the Sticky Keys keyboard shortcut. (W11 only) +- Restore the old Windows 10 style context menu. (W11 only) +- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only) + #### File Explorer - Change the default location that File Explorer opens to. @@ -132,17 +141,10 @@ Below is an overview of the key features and functionality offered by Win11Deblo - Disable & hide the recommended section in the start menu. (W11 only) - Disable the Phone Link mobile devices integration in the start menu. (W11 only) -#### Context Menu - -- Restore the old Windows 10 style context menu. (W11 only) -- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only) - #### Other - Disable Xbox game/screen recording, this also stops gaming overlay popups. -- Turn off Enhance Pointer Precision, also known as mouse acceleration. - Disable Fast Start-up to ensure a full shutdown. -- Disable the Sticky Keys keyboard shortcut. (W11 only) - Option to [apply changes to a different user](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#running-as-another-user), instead of the currently logged in user. - [Sysprep mode](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#sysprep-mode) to apply changes to the Windows Default user profile. Afterwards, all new users will have the changes automatically applied to them. diff --git a/Regfiles/Disable_Animations.reg b/Regfiles/Disable_Animations.reg new file mode 100644 index 0000000..885e43b --- /dev/null +++ b/Regfiles/Disable_Animations.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Control Panel\Desktop] +"UserPreferencesMask"=hex:90,12,07,80,10,00,00,00 diff --git a/Regfiles/Disable_Transparency.reg b/Regfiles/Disable_Transparency.reg new file mode 100644 index 0000000..85e89a9 --- /dev/null +++ b/Regfiles/Disable_Transparency.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize] +"EnableTransparency"=dword:00000000 diff --git a/Regfiles/Enable_Dark_Mode.reg b/Regfiles/Enable_Dark_Mode.reg new file mode 100644 index 0000000..7168424 --- /dev/null +++ b/Regfiles/Enable_Dark_Mode.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize] +"AppsUseLightTheme"=dword:00000000 +"SystemUsesLightTheme"=dword:00000000 diff --git a/Regfiles/Sysprep/Disable_Animations.reg b/Regfiles/Sysprep/Disable_Animations.reg new file mode 100644 index 0000000..75528e9 --- /dev/null +++ b/Regfiles/Sysprep/Disable_Animations.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[hkey_users\default\Control Panel\Desktop] +"UserPreferencesMask"=hex:90,12,07,80,10,00,00,00 diff --git a/Regfiles/Sysprep/Disable_Transparency.reg b/Regfiles/Sysprep/Disable_Transparency.reg new file mode 100644 index 0000000..48ed602 --- /dev/null +++ b/Regfiles/Sysprep/Disable_Transparency.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize] +"EnableTransparency"=dword:00000000 diff --git a/Regfiles/Sysprep/Enable_Dark_Mode.reg b/Regfiles/Sysprep/Enable_Dark_Mode.reg new file mode 100644 index 0000000..77dc9a3 --- /dev/null +++ b/Regfiles/Sysprep/Enable_Dark_Mode.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize] +"AppsUseLightTheme"=dword:00000000 +"SystemUsesLightTheme"=dword:00000000 diff --git a/Regfiles/Undo/Enable_Animations.reg b/Regfiles/Undo/Enable_Animations.reg new file mode 100644 index 0000000..2884e62 --- /dev/null +++ b/Regfiles/Undo/Enable_Animations.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Control Panel\Desktop] +"UserPreferencesMask"=hex:9e,1e,07,80,12,00,00,00 diff --git a/Regfiles/Undo/Enable_Light_Mode.reg b/Regfiles/Undo/Enable_Light_Mode.reg new file mode 100644 index 0000000..9962c90 --- /dev/null +++ b/Regfiles/Undo/Enable_Light_Mode.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize] +"AppsUseLightTheme"=dword:00000001 +"SystemUsesLightTheme"=dword:00000001 diff --git a/Regfiles/Undo/Enable_Transparency.reg b/Regfiles/Undo/Enable_Transparency.reg new file mode 100644 index 0000000..1d98905 --- /dev/null +++ b/Regfiles/Undo/Enable_Transparency.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize] +"EnableTransparency"=dword:00000001 diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index c9b1c72..bc2e5b4 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -30,6 +30,9 @@ param ( [switch]$ShowHiddenFolders, [switch]$ShowKnownFileExt, [switch]$HideDupliDrive, + [switch]$EnableDarkMode, + [switch]$DisableTransparency, + [switch]$DisableAnimations, [switch]$TaskbarAlignLeft, [switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb, [switch]$HideTaskview, @@ -581,6 +584,10 @@ function RestartExplorer { Write-Host "Warning: The Sticky Keys setting changes will only take effect after a reboot" -ForegroundColor Yellow } + if ($script:Params.ContainsKey("DisableAnimations")) { + Write-Host "Warning: Animations will only be disabled after a reboot" -ForegroundColor Yellow + } + # Only restart if the powershell process matches the OS architecture. # Restarting explorer from a 32bit PowerShell window will fail on a 64bit OS if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) { @@ -903,6 +910,19 @@ function DisplayCustomModeOptions { AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.' } + Write-Output "" + + if ($( Read-Host -Prompt "Enable dark mode for system and apps? (y/n)" ) -eq 'y') { + AddParameter 'EnableDarkMode' 'Enable dark mode for system and apps' + } + + Write-Output "" + + if ($( Read-Host -Prompt "Disable transparency, animations and visual effects? (y/n)" ) -eq 'y') { + AddParameter 'DisableTransparency' 'Disable transparency effects' + AddParameter 'DisableAnimations' 'Disable animations and visual effects' + } + # Only show this option for Windows 11 users running build 22000 or later if ($WinVersion -ge 22000) { Write-Output "" @@ -1605,6 +1625,18 @@ switch ($script:Params.Keys) { RegImport "> Disabling the Phone Link mobile devices integration in the start menu..." "Disable_Phone_Link_In_Start.reg" continue } + 'EnableDarkMode' { + RegImport "> Enabling dark mode for system and apps..." "Enable_Dark_Mode.reg" + continue + } + 'DisableTransparency' { + RegImport "> Disabling transparency effects..." "Disable_Transparency.reg" + continue + } + 'DisableAnimations' { + RegImport "> Disabling animations and visual effects..." "Disable_Animations.reg" + continue + } 'TaskbarAlignLeft' { RegImport "> Aligning taskbar buttons to the left..." "Align_Taskbar_Left.reg" continue