Files
wehub-resource-sync 3e779be6f3
CI / lint (push) Failing after 13m4s
CI / test (3.11, ubuntu-latest) (push) Failing after 2m4s
CI / test (3.13, ubuntu-latest) (push) Successful in 13m30s
CI / test (3.14, ubuntu-latest) (push) Successful in 17m21s
CI / test (3.12, ubuntu-latest) (push) Successful in 17m55s
CI / discover-apps-ps (push) Successful in 1m56s
CI / test (3.9, ubuntu-latest) (push) Successful in 13m17s
CI / test (3.10, ubuntu-latest) (push) Successful in 26m21s
CI / audit (push) Successful in 13m38s
Deploy site / deploy (push) Has been cancelled
CI / test (3.14, ubuntu-24.04-arm) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:32:37 +08:00

28 lines
1.9 KiB
PowerShell

# SPDX-License-Identifier: MIT
# winpodx debloat: visual effects -> "best performance" (sysguides recipe) plus
# a couple of RDP-friendly DWM tweaks.
#
# Sets VisualFXSetting=3 (custom), keeps thumbnails + font smoothing on for
# readability, and turns the rest (animations, fades, taskbar transitions, Aero
# Peek, saved-thumbnail caching) off so less is composited over the RDP link.
Write-Host "[visual_effects] Applying 'best performance' visual settings..."
$perfValues = @(
@{Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects"; Name="VisualFXSetting"; Value=3; Type="DWord"},
@{Path="HKCU:\Control Panel\Desktop"; Name="UserPreferencesMask"; Value=([byte[]](0x90,0x12,0x03,0x80,0x10,0x00,0x00,0x00)); Type="Binary"},
@{Path="HKCU:\Control Panel\Desktop"; Name="FontSmoothing"; Value="2"; Type="String"},
@{Path="HKCU:\Control Panel\Desktop\WindowMetrics"; Name="MinAnimate"; Value="0"; Type="String"},
@{Path="HKCU:\Software\Microsoft\Windows\DWM"; Name="EnableAeroPeek"; Value=0; Type="DWord"},
@{Path="HKCU:\Software\Microsoft\Windows\DWM"; Name="AlwaysHibernateThumbnails"; Value=0; Type="DWord"},
@{Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="TaskbarAnimations"; Value=0; Type="DWord"},
@{Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="IconsOnly"; Value=0; Type="DWord"},
@{Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="ListviewShadow"; Value=0; Type="DWord"},
@{Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="ListviewAlphaSelect"; Value=0; Type="DWord"}
)
foreach ($item in $perfValues) {
New-Item -Path $item.Path -Force -ErrorAction SilentlyContinue | Out-Null
Set-ItemProperty -Path $item.Path -Name $item.Name -Value $item.Value -Type $item.Type -Force -ErrorAction SilentlyContinue
}