refine X keyboard config