🐍 Python 3.10+
Disable Snap Assist Suggestions (Python)
Stops Windows from suggesting other windows to snap next to one you just moved. Applies the tweak via the stdlib winreg module.
set_disable_snap_assist.py
#!/usr/bin/env python3
"""
set_disable_snap_assist.py
Disable Snap Assist Suggestions.
Stops Windows from suggesting other windows to snap next to one you just moved.
Usage:
python set_disable_snap_assist.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, "SnapAssist", 0, winreg.REG_DWORD, 0)
winreg.CloseKey(key)
print("Disable Snap Assist Suggestions applied.")
if __name__ == "__main__":
main()