Solaris X11 and Dvorak simplified keyboard layout
I've recently been playing with OpenSolaris and Solaris Express DE running in VirtualBox. They're fine so far (except audio isn't working) but I stumbled on a usability issue that was nearly a show-stopper: dratted QWERTY layouts! The GNOME GUI for switching to Dvorak doesn't work, and setxkbmap
(1) can't find the rules file for dvorak either (they don't seem to be installed where the man page indicates)...
Well, after some searching around I discovered that for Solaris X11, need to use xmodmap
(1). The xmodmap key maps for Solaris are located in /usr/share/xmodmap
so you can switch between Dvorak and QWERTY thus:
xmodmap /usr/share/xmodmap/xmodmap.dvorak
xmodmap /usr/share/xmodmap/xmodmap.us
Making a pair of shell aliases for these verbose commands would be handy too:
alias asdf "xmodmap /usr/share/xmodmap/xmodmap.dvorak" alias aoeu "xmodmap /usr/share/xmodmap/xmodmap.us"
with these, just type the first four keys of the home row and press enter to flip to the other layout. Xmodmap only affects X11 (global for all running and new X clients).