I'll give your next attempt a try when you think it's good enough to be tested. I ended up going back to my old matchbox-window file so I could use Xkbd again.