Giter VIP home page Giter VIP logo

candy-led's Introduction

candy-led

Dell Chromebook 11 (candy) activity led control utility

Usage: python3 led.py (color) number

or for continuous randomness: python3 led.py

color is one of: 'red','green','blue','cyan','magenta','yellow','white' or special: 'black' - off 'gay' or 'rainbow' - Rainbow colors 'ace' - Ace colors 'nb' - NB colors 'bi' - Bi colors '<3' - all of the above

In the directory is a led-randomness.service to use it (options in () are optional/depending on how your system is, make sure you know what they do before running them):

  1. Modify the USER= and PATH= if needed (by default it assumes ~/git/candy-led/, See note below for security)
  2. (sudo) systemctl (--user) enable ~/git/candy-led/led-randomness.service
  3. (sudo) systemctl (--user) start ~/git/candy-led/led-randomness.service
  4. Enjoy!

This is actually quite useful to tell when it goes to sleep, or if a machine has turned off at a glance if done globally.

NOTE on permissions/security: The device (/dev/hidrawX) may or may not have permissions to use it, which gives 2 options: 1: Change the device so that your user can write to it. (You need to make sure it's the right one, and potential security issue depending on how things get setup as hidraw devices as opposed to normal setup. Different distros seem to have different permissions on it.) 2: Run as sudo/root (This IS a potential security issue.)

I personally do #1 most of the time, but have done #2, depending on the system. However, I wrote some of it, and know what the rest does, and running a script you don't know what it does is generally a bad idea. Whichever one you choose to do is your choice. I would suggest if you do use #2, to put it in /root and make sure root owns it. (Otherwise modification of the script is trivial as a user.)

candy-led's People

Contributors

hgeg avatar james-lan avatar

Stargazers

Yangon avatar

Watchers

James Cloos 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.