refactor mouse setting logic in xinitrc