A sun keyboard has a lot more interesting keys than your average PC keyboard. Specifically, 'meta', "Open", "Front", "Copy", "Paste", "Cut". [the 'meta' key is the little "diamond" key on a sun keyboard.] But you can have these keys on your solaris x86 box as well! All the magic is done through a command called "xmodmap". It tells your computer to take the "raw" signal from any keyboard key, and pretend it is a different key. Please note that this is SPECIFIC TO Solaris! Or at least I presume so. I have notes on why, below. But if you're not running solaris, you probably dont care anyways. Unless you're runing OpenLook, in which case, you might want Copy and Cut keys, too. ------------------------------------------------------------ First of all, xmodmap is normally used with an input file. All of the commands below should go into a file like $HOME/.keymaps Then you just have to run xmodmap .keymaps once when you log in, and all your keyboard prefs will be set. (or if you want this automated, You might try puttting the xmodmap command in $HOME/.dt/sessionetc, which you will probably need to create ) ------------------------------------------------------------ To have a "kill-server" keysequence, first start Xsun with +kb. Then bind a key to the keysym XK_Terminate_Server [0xFED5], with keycode XXX = Terminate_Server Choose the keycode carefully. I havent figured out a way to have a combination of keys like control-alt-del yet. ------------------------------------------------------------ If you have "windows" keys on your keyboard (The stupid M$ logo thing) you can turn those into useful "Meta" keys. Well-written X programs allow combinations of shift, control, Alt, AND Meta keys as modfiers. For example, Emacs. The commands to put in your .keymaps file will look like keycode 115 = Meta_L keycode 116 = Meta_R Although a lot of times, Sun actually maps those "windows" keys to Meta already now. To find out the 'raw' keycode number of a key, you need to run the command "/usr/openwin/demo/xev". Then give that window keyboard focus, and press the key. It will then show you the keycodes. You then need to look in /usr/openwin/include/X11/keysymdef.h Mentally remove the leading "XK_" from all the names, and you then have the normal names of keys. EXCEPTION: There are some "special" sun keys, that aren't in there. However, if you look in /usr/dt/config/C/sys.dtwmrc, you will see special keys of the format "SunXXXX" So, to map F9, F10, F11, F12, to Front, Open, Copy, and Paste, you can use the following: [remember, FIND THE REAL keycodes, this is just an example!!} keycode 75 = SunFront keycode 76 = SunOpen keycode 95 = SunCopy keycode 96 = SunPaste [I personally never USE "SunCut", so I dont list it here.] Except that the specific keycodes may vary depending on YOUR keyboard, so you should use /usr/openwin/demo/xev to verify the keycodes on your keys. On my current keyboard, I actually use ! for F11-F12 keycode 129 = SunFront keycode 130 = SunOpen If you want to see the effects right away, you will have to use your mouse to restart your window manager. [Windows -> Restart Workspace Manager] ################################################### Additional important tips for XFree86: To get your keyboard to work right under xfree86 4.0, you need to have the following in /etc/X11/XF86Config, to override any existing XkbModel line: Option "XkbModel" "pc101_sol8x86" Then, to stop Motif/netscape from complaining so much, you need to add the following to /usr/dt/lib/bindings/xmbind.aliases "The XFree86 Project, Inc" sun_at phil@bolthole.com http://www.bolthole.com/solaris/