Issues, ideas and pull requests are all appreciated. > -V, -version print the current versionĬontributions are welcome. > -v, -verbose some messages will be more detailed > -m METHOD, -method METHOD specify which method to use ![]() > -f VALUE, -fade VALUE fade the brightness to this value > -g, -get get the current screen brightness > -s VALUE, -set VALUE set the brightness to this value > -d DISPLAY, -display DISPLAY the display to be used > -h, -help show this help message and exit Command Line python -m screen_brightness_control -help get_brightness ( display = monitor ), '%' )Ĭheck out the quick start guide for more details on each of these functions.įull documentation for the project is also available here. list_monitors (): print ( monitor, ':', sbc. get_brightness ( 100, display = 0 ) # show the current brightness for each detected monitor for monitor in sbc. set_brightness ( 100 ) # set the brightness to 100% for the primary monitor sbc. get_brightness ( display = 0 ) # set the brightness to 100% sbc. Hosted on GitHub, so you need to visit this page. get_brightness () # get the brightness for the primary monitor primary = sbc. Clicking on that will display a slider that you can use to easily and quickly change your screen brightness. Usage API import screen_brightness_control as sbc # get the brightness brightness = sbc. Please see the installing on Linux documentation for more details. Installing on Linux usually requires some extra work after installing the module. Pip install screen-brightness-control GitHub: git clone ![]() Supports Windows and most flavours of Linux. A Python tool for controlling the brightness of your monitor.
0 Comments
Leave a Reply. |