Search code examples
pythoncontrastscreen-brightness

Adjust screen brightness and contrast using Python?


I want to adjust screen brightness and contrast using Python. Does anyone know a library that can do this? How can the script be triggered using a keyboard shortcut?


Solution

  • I found what looks like a Linux-specific recipe here.

    For windows I think you need to find out what function you need to call in which dll (probably driver-specific) and use ctypes to make the required call.