Git Product home page Git Product logo

kbdcycle's Introduction

kbdcycle

System76 keyboard color phaser

KBD Cycle for System76

Sometimes you get bored and want to mess with sine functions in Python. This simple script phases the color of the left, center, and right keyboard panes on System76 laptops equipped with a backlit keyboard.

Make it a Service

  1. Copy the kbd-cycle.py script to /usr/bin or wherever you would like. I personally selected /etc/init.d.
  2. Create a Unit File in /lib/systemd/system/kbd-cycle.service to define the service.
[Unit]
Description=Keyboard Rainbow

[Service]
Type=simple
ExecStart=/usr/bin/python3 /etc/init.d/kbd-cycle.py
StandardInput=tty-force

[Install]
WantedBy=multi-user.target
  1. Reload the systemctl daemon:
$ sudo systemctl daemon-reload
  1. Enable the new service:
$ sudo systemctl enable kbd-cycle.service
  1. Start the new servie
sudo systemctl start kbd-cycle.service
  1. Enjoy rainbow phased keyboard!
  2. Stop the new service (because this is a crazy thing to have all the time)
$ sudo systemctl stop kbd-cycle.service

kbdcycle's People

Contributors

shawndevans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.