Hacker News new | ask | show | jobs
by BoorishBears 1645 days ago
The button doesn't actually send an event

I wrote a similar program, you just listen for something connected to the hub disappearing

  if mouse no longer connected:

    tell monitor to switch output via DDC

  else if mouse now connected:

    tell monitor to switch back via DDC