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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be53f2489e9792120ff6d0482b03d937a86567c20af425285c1fc69a1afe45c |
|
MD5 | d0253ba11133ded33cb7f119bf202794 |
|
BLAKE2b-256 | 0dc0bc710eed788b886d8fd3096a19edb8c3f346587278fce66d33c7668a2a34 |
Close
Hashes for screen_brightness_control-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4698dc487b2893a8c4f8ebfc727c47651da27ad7ff3bb16f9a408a42a10d6f47 |
|
MD5 | e418638bedeb1fb6bbf5059b145f0ea5 |
|
BLAKE2b-256 | ce9e8df5e09d156be5ebc070cadd6c16ea51d71af3e4666649338889ff690c2e |