A daemon that executes programs depending on the state changes of the earphones and the lid