# logitech-g13-badapple

A tech demo that plays Bad Apple! on the Logitech G13. Cause reasons.

It uses the longer 5 minute version of the song instead of the edited version the actual video uses. That's my bad. I won't fix it.

This uses the [g13 userspace driver](https://github.com/ecraven/g13), and expects the named pipe to be at /run/g13d/g13-0 as that's where it was put on my system (Arch).

This demo is VERY poorly written, but I don't care that much.

# Usage
## The Short Version
`python3 badapple.py`

## The Long Version
The repository contains all of the lpbm files prebuilt, but if you'd like to do it yourself you can download [the video that was used](https://youtu.be/9lNZ_Rnr7Jc). The file must be named `original.mp4`.

Once that file is there, run the `generate.sh` script. It will take care of everything.

It's worth noting that this could probably be used for any video file if you so desired. Not sure why youd want to do that, though, unless it's for an animation of some sort which could be kinda fun.
