Skip to main content

A Python tool to control monitor brightness on Windows and Linux

Project description

screen_brightness_control

A Python tool for controlling the brightness of your monitor

How to install:

  • Clone/download the repository
  • Enter the folder it has been cloned to and run "pip3 install ."
  • That should be all

How to use:

import screen_brightness_control as sbc
current_brightness = sbc.get_brightnness()
sbc.set_brightness(current_brightness+5)

The module has 2 basic functions: set_brightness and get_brightness. On Windows these use the WMI module, which is nice and simple. On Linux, however, they use a variety of methods. They will try to run light and xbacklight commands and if that does not work they will edit the /sys/class/backlight files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

screen_brightness_control-0.1.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

screen_brightness_control-0.1.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page