Make your keyboard lights blink; written in Go
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
LICENSE
README.md Expand README Dec 31, 2016
blink.go

README.md

Blink

This package lets you make your keyboard lights blink. You can use blinking keyboard lights for all kinds of fun things, such as notifications of when someone visits your website!

Install

If you just run "go install" on this, you'll end up with a binary that's only usable by running sudo, and that's no fun!

Instead, since this binary is quite harmless, we want anyone to be able to run it as root! So, to do that we can do this:

# Assuming you're in this directory, will put an executable named "blink"
# in current directory
go build -o blink ./cmd/blink
# Set the owning user to be root
sudo chown root blink
# Set the sticky bit on the executable owned by root, so no matter who
# launches it it's launched with root priveleges.
sudo chmod u+s blink

And now that you've got your magical "always runs as root" executable, you can place it wherever you want (such as in your $PATH).