🐍 Python 3.10+
Align Taskbar Icons Left (Python)
Switches the Windows 11 taskbar back to left-aligned icons. Applies the tweak via the stdlib winreg module.
set_taskbar_align_left.py
#!/usr/bin/env python3
"""
set_taskbar_align_left.py
Align Taskbar Icons Left.
Switches the Windows 11 taskbar back to left-aligned icons.
Usage:
python set_taskbar_align_left.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, "TaskbarAl", 0, winreg.REG_DWORD, 0)
winreg.CloseKey(key)
print("Align Taskbar Icons Left applied.")
if __name__ == "__main__":
main()