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 and changes the screen brightness based on screen’s contents.

installation

pip install autolux

dependencies

  • imagemagick (for screenshots + determining average brightness)

  • xdotool (finding focused window)

  • xbacklight (for setting display brightness)

usage

autolux

how it works

autolux is a simple python script that takes a screenshot of a vertical strip every few seconds and calculates the average pixel value. in order to save CPU, a screenshot is only taken if the window has changed since the last time a screenshot was taken

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

autolux-0.0.5.tar.gz (2.6 kB view hashes)

Uploaded Source

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