Skip to content

Instantly share code, notes, and snippets.

View itshaadi's full-sized avatar

Hadi Azami itshaadi

View GitHub Profile
@itshaadi
itshaadi / cec-keypresses.sh
Last active March 9, 2018 18:35 — forked from bahamas10/cec-keypresses.sh
use `cec-client` to fire events when keys are pressed
#!/usr/bin/env bash
#
# react to cec keypresses in the jankiest way possible
#
# Author: Dave Eddy <dave@daveeddy.com>
# Date: 10/15/2013
# Licens: MIT
# Tested on: Raspberry pi with libcec compiled from soure
onright() {