I created the following
~/.Xmodmap file as per this answer.
keysym Delete = Menu keysym Menu = Delete clear Lock keycode 0x42 = Escape
In other words, swap
Menu, and make
Caps Lock an additional
The next time I logged in, Ubuntu asked me if I wanted to load
~/.Xmodmap as expected. I loaded it, but nothing happened (either then or on subsequent logins). If I manually run
xmodmap ~/.Xmodmap, it works as expected.
I know that this worked early in the 10.10 beta, but it's failing on my fresh 10.10 install. I haven't tried in on anything earlier than 10.10. Any ideas?
Edit: I put some debugging statements in
/etc/gdm/Xsession to make sure
~/.Xmodmap was loading, and everything magically started working. I didn't change anything except adding some echos, and it's still working now that I reverted my changes and restarted again. Strangest thing I ever saw.
One thing I realized is that the "remap Caps Lock to Escape" part of the Xmodmap was always working. It was just the Delete/Menu swap that failed. I'll leave this question open for now in case anyone else has the same problem, since I don't actually know why the problem stopped.