Skip to main content

Alfrodull

Alfrodull is a utility that controls lights based on the a computers events.

The lights can be turned off when the computer sleepd, and turn on when the computer wakes up. The original use case was to attach an led strip behind the monitor that turn on and off as the display does. But much more can be doen as additional events can easily be added. For example blinking the lights when notifications are received or tracking CPU usage and warning when it passes a threshold.

Right now the only supported devices are those from blinksticks. More can be added if requested and I can get ahold of them.

Alfrodull only works on Linux right now as all of the events uses DBUS notifications to react to events. Support for Windows could be added in the future but would require some other notification service.

Install

pip install alfrodull

Usage

Simply start alfrodull and pass a configuration file path as input.

alfrodull config.yml

Alfrodull could for example be started in xinit or i3wm config.

Configuration

Alfrodull is configured with a file, this is where the event, animation and, color are specified. Colors are defined as hex values ex. #ff00ff, the values will be checked when the program is started and throw an exception if they can't be parsed. Passing a null value to the color is parsed as turning off the lights. Below are the currently supported events and animations that can be used.

Event Description
Init After the applicationn is first run
Shutdown Before the computer turns off
Sleep Before the computer goes to sleep
Wakeup After the computer wakes up
Effect Description
Fade Fades from the current color or if the color is null turn off.
Outside In Starts from the outside and changes light one by one to the inside.
Inside Out Opposite of Outside In.
device: blinkstick
events:
  - type: "Init"
    animation:
      type: "Fade"
      color: "#ffffff"
  - type: "Sleep"
    animation:
      type: "Inside Out"
      color: "#000000"
  - type: "Wakeup"
    animation:
      type: "Outside In"
      color: "#ffffff"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for alfrodull 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alfrodull 0.1.0
File Size Uploaded
alfrodull-0.1.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alfrodull 0.1.0
File Interpreter ABI Platform
alfrodull-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / alfrodull-0.1.0.tar.gz

Download URL alfrodull-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
035b59c47a4a29d97a720144a4ed439ba3ec2a7b3964daad65dfee239db89e0f
BLAKE2b-256 checksum
How to use checksums
17b347f2d1874a8f7f436e481ad68cb8d25987cc39b43fb488d12aaf1d887d11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.1

Release files / alfrodull-0.1.0-py3-none-any.whl

Download URL alfrodull-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39ed134fa8ac7b0579ce1109588e05aa221d17318ea9ff9f918ddf787aa47be2
BLAKE2b-256 checksum
How to use checksums
f7e9c8b1345a8caf20cee579a5d197e77e3f2cee880063c80e46ea5508c409a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page