Code Monkey home page Code Monkey logo

keylightctl's Introduction

keylightd

Keyboard backlight daemon for Framework laptops

keylightd is a small system daemon for Framework laptops that listens to keyboard and touchpad input, and turns on the keyboard backlight while either is being used.

Installation

To install from source, clone the repository and run:

$ cargo build --release
$ sudo cp target/release/keylightd /usr/local/bin

keylightd has no native dependencies you have to install first (apart from a recent Rust toolchain for building it, of course). It implements communication with the Embedded Controller itself, and talks to the input devices using evdev ioctls directly. It also does not have any hard dependencies on a desktop environment or display server.

If you want to configure keylightd as a systemd service that starts on boot, you can use the provided service file:

$ sudo cp etc/keylightd.service /etc/systemd/system
$ sudo systemctl enable --now keylightd

Running

Note that keylightd needs to be run as root, since it accesses the Embedded Controller to control the keyboard backlight.

keylightd takes the following command-line arguments:

Usage: keylightd [--brightness <brightness>] [--timeout <timeout>] [--power]

keylightd - automatic keyboard backlight daemon for Framework laptops

Options:
  --brightness      brightness level when active (0-100) [default=30]
  --timeout         activity timeout in seconds [default=10]
  --power           also control the power LED in the fingerprint module
  --help            display usage information

If you're using the provided keylightd.service file, you can adjust the command line parameters there.

Contributing

This project does not accept contributions. It is finished and does what I want of it.

keylightctl's People

Contributors

jonas-schievink avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.