GithubHelp home page GithubHelp logo

radeeyate / kblight Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 17 KB

A tool to control the built-in keyboard backlight on the Framework Laptop 13 via ectool

License: MIT License

Shell 100.00%
bash framework-laptop keyboard shell-script shell-scripts framework-13 framework framework-computer

kblight's Introduction

kblight

Control your Framework Laptop 13 keyboard backlight brightness and effects.

Installation

Choose one of the following installation methods:

  1. Automatic installation using wget:

    wget -qO- https://raw.githubusercontent.com/radeeyate/kblight/main/install.sh | sudo bash
  2. Manual installation:

    1. Download kblight script:

      curl -LO https://raw.githubusercontent.com/radeeyate/kblight/main/kblight
    2. Make it executable:

      chmod +x kblight
    3. Move it to a directory in your PATH (optional):

      sudo mv kblight /usr/local/bin/

Usage

kblight <command> <options>

Available commands:

  • set : Sets the keyboard backlight brightness.
    • Available brightness levels:
      • max: Sets brightness to maximum (100%)
      • off: Turns off the backlight
      • mid: Sets brightness to 50%
      • low: Sets brightness to 20%
      • dim: Sets brightness to 5%
      • <number>: Sets brightness to a specific percentage value (0-100)
  • effect : Applies a keyboard lighting effect.
    • Available effects:
      • strobe
      • breathe
  • get: Gets the current keyboard backlight brightness as a percentage.
  • help: Displays this help message.
  • version: Displays the version information of kblight.

Examples

  • Turn off the keyboard backlight:

    kblight set off
  • Set the brightness to 75%:

    kblight set 75
  • Apply the "breathe" effect:

    kblight effect breathe

Notes

  • This script requires root privileges to run.
  • It relies on the ectool utility to interact with the Framework Laptop 13 embedded controller. If ectool is not found, the binary will be downloaded automatically into /usr/local/bin.

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

MIT

kblight's People

Contributors

radeeyate avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.