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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for screen_brightness_control-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5162b7666b96a30c7f8ee678d12f49a540d73d6ea556421dc95b0d5197bc5347 |
|
MD5 | 1f80a02930026090de83159e6f2b5ae0 |
|
BLAKE2b-256 | 9982f9dc209c8c9eaacad6beb0335f3a29018acb760392fdfb96883d75a0d36b |
Close
Hashes for screen_brightness_control-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6f76ef1d8ea781c2ad131246d4866ffd1730578a78b9d53935dc60e7d500572 |
|
MD5 | 8c27e2f5c576344e4abc2a4c9f8d0eec |
|
BLAKE2b-256 | 85fa83ec7c3fca5c51ef0ce203d1ac7ab2790ebaa395a2a7841be9b58fc51d9d |