You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

facewaiter.sh 389B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. keyboard="AT Translated Set 2 keyboard"
  3. rm -f .testfifo
  4. mkfifo .testfifo
  5. xinput test "AT Translated Set 2 keyboard" \
  6. | grep --line-buffered "key press 36" > .testfifo &
  7. xpid=$!
  8. rm -f .matchfifo
  9. mkfifo .matchfifo
  10. cat .matchfifo | ./facematcher.py match --device 2 --wait faces/$USER/* &
  11. read <.testfifo
  12. echo > .matchfifo
  13. kill $xpid
  14. wait
  15. rm -f .testfifo
  16. rm -f .matchfifo