Wish your family and friends a Merry Christmas via their keyboards and mice!
Read the blog post for more, watch the video to see how it sings.
Contents
- Bash
xinput
play
from Soxstdbuf
for resolving buffer issue
By default, it uses keyboard and mouse devices:
AT Translated Set 2 keyboard SynPS/2 Synaptics TouchPad
You should run with:
% stdbuf -oL merryxmas.sh &
To get the right device names and change them, use:
% xinput list
% INPUT_K='KB_DEV_NAME' INPUT_M='M_DEV_NAME' stdbuf -oL merryxmas.sh &
You should kill it with if necessary:
% pkill merryxmas.sh % pkill xinput
The script creates two files:
/tmp/.tmp_k
/tmp/.tmp_m
This project has been placed in public domain, or via UNLICENSE if not applicable.