Skip to main content

an auto luxer

Project description

inspired by lumen <https://github.com/anishathalye/lumen> but written for *nix machines. autolux takes a screenshot every few seconds, figures out the ‘average value’ of the resulting image (the luminence) and changes the screen brightness based on your screen’s contents.

installation

pip install autolux

dependencies

  • python2 (not python3)
  • imagemagick (for screenshots + determining average brightness)
  • xdotool (finding focused window)
  • xbacklight (for setting display brightness)

usage

# runs autolux
autolux

# show luminence prediction model
# requires matplotlib
autolux --vis
https://cloud.githubusercontent.com/assets/98617/17502147/6c0062f6-5d9a-11e6-8ed6-2ed39d2884e7.png
# color is the input luminence. (5K - 65K, lower is darker)
# x axis is hour (0 - 24, with UTC offset applied)
# y axis is predicted brightness level from the model (0 - 100%)

# the red regions represent low luminence screen content and therefore
# have a higher predicted brightness. the blue regions are high luminence
# content with a lower predicted brightness

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
autolux-0.0.24.tar.gz (6.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page