🐍 Python 3.10+
Disable Aero Shake (Python)
Stops shaking a window from minimizing every other open window. Applies the tweak via the stdlib winreg module.
set_disable_aero_shake.py
#!/usr/bin/env python3
"""
set_disable_aero_shake.py
Disable Aero Shake.
Stops shaking a window from minimizing every other open window.
Usage:
python set_disable_aero_shake.py
"""
import winreg
def main() -> None:
key = winreg.CreateKeyEx(
winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", 0, winreg.KEY_SET_VALUE
)
winreg.SetValueEx(key, "DisallowShaking", 0, winreg.REG_DWORD, 1)
winreg.CloseKey(key)
print("Disable Aero Shake applied.")
if __name__ == "__main__":
main()