import { spawn } from 'child_process'; export default function() { return { pttDown: () => { spawn('/home/omega/Documents/ts3_remote/ptt_daemon', ['/dev/mhuxd/fsk1', '1']); }, pttUp: () => { spawn('/home/omega/Documents/ts3_remote/ptt_daemon', ['/dev/mhuxd/fsk1', '0']); } }; };