Custom keymap

  • can anyone help me to map a script to a button i press on the remote? i want to use the power tv button on the wp2 remote to power the avr reciever on.

    im running the beta of krypton by raybuntu

    i can power on using the following command in ssh

    echo "on 5" | cec-client -s

    i want this to be the on off button for avr if already on then turn off if off turn on any clues?

    also want to add a script as a favourite and run it from there if this is possible.