Giter Club home page Giter Club logo

legion-y720-keyboard-backlight's Introduction

Legion-Y720-Keyboard-Backlight


GitHub Travis (.com) Last commit Commits since latest Downloads


Simple C program to control the keyboard backlight on the Lenovo Legion Y720 (should probably work on other laptops with the same keyboard)

It's literally this but written in C without a GUI for the minimalists and purists

Features


  • Unlimited profiles
  • Easy-ish configuration
  • No GUI (terminal ftw)
  • Written in C

➡ 🏗️ Build


$ make all
...
  • Binary can be found in build/release/kbd-backlight

➡ ✨ Install


$ sudo make all install postinstall
...
  • Binary path is /usr/local/bin/kbd-backlight
  • Configuration path is /etc/kbd-backlight/backlight.conf

NOTE: Any user that should be able to control the backlight should be added to the kbd-backlight group (gpasswd -a [USER] kbd-backlight)

We now have an AppArmor profile for the binary, to install it do this:

$ sudo make apparmor
...

$ sudo aa-enforce /etc/apparmor.d/kbd-backlight

Usage


$ kbd-backlight

Usage: kbd-backlight [profile name] {config file}

{config file}: Specify another location for the config file (Optional)

Each user, who is in the kbd-backlight group, can now have their own personal config file with their own custom profiles. This config file must be manually created by the user with this command:

$ cp /usr/share/kbd-backlight/backlight.conf.default ~/.config/kbd-backlight.conf

The executable will automagically detect whether the user has their own config and load that instead of the system-wide one

legion-y720-keyboard-backlight's People

Contributors

threadexio avatar vgaetera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

devzth vgaetera

legion-y720-keyboard-backlight's Issues

Doesn't work on Arch Linux

Dear threadexio,

I installed your software on Arch Linux and it doesn't work.
I tried to install it with AUR and did it manually as well, unfortunately neither of them worked.
I tried to load the default profile to test it and it logs: " ✔ Loaded profile: default" but the lights doesn't turn on.
Running with sudo didn't help.

The other tool works but I really don't need a GUI.

Is it possible to create new colors/effects?

Hi, thanks for your effort in creating this package.

I made it available on the Arch User Repository here.

As the title implies, is it possible to create new colors or change effects, or are we bound to the current ones?

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.