- #!/usr/bin/zsh
- xinput test `xinput list | grep "Logitech USB Receiver" | grep -oE "id=[0-9]+" | grep -oE "[0-9]+"` | while read in ; do; [[ $in = "key press 71" || $in = "key press 9" ]] && cvlc --no-loop --play-and-exit `ls applause* | shuf -n 1` 2>/dev/null 1>/dev/null &;
- [[ $in = "key press 60" ]] && cvlc --no-loop --play-and-exit `ls laugh* | shuf -n 1` 2>/dev/null 1>/dev/null &
- done
|