Welcome, Guest
Please Login or Register.    Lost Password?

SUN: How do I map Cut/Copy/Paste/etc to my GO-Global keymap?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: SUN: How do I map Cut/Copy/Paste/etc to my GO-Global keymap?
#8
SUN: How do I map Cut/Copy/Paste/etc to my GO-Global keymap? 14 Years, 1 Month ago Karma: 2
Generally speaking, this can be done using 'xmodmap' within the X session. For example, to map the "F10" key on the PC keyboard to the Sun "Copy" key, you could use:

Code:

$ xmodmap -e 'keycode 121 = F16'


You can obtain the proper keycodes to use by running the 'xev' program (/usr/openwin/demo/xev on Solaris) and pressing the key that you want the keycode for. The list of Sun keys and their corresponding keysyms are:

Stop - F11
Again - F12
Props - F13
Undo - F14
Front - F15
Copy - F16
Open - F17
Paste - F18
Find - F19
Cut - F20

Under Openwindows, you can remap some of the Sun function keys as follows:

Code:

    # Map SunCopy to F5
    xmodmap -e 'keysym F5 = L6'
    # Map SunPaste to F6
    xmodmap -e 'keysym F6 = L8'
    # Map SunCut to F7
    xmodmap -e 'keysym F7 = L10'
    # Map SunFront to F8
    xmodmap -e 'keysym F8 = L5'



For CDE, you can use the following to map the Cut, Copy, and Paste keys:

Code:

    # Map SunCopy to F5
    xmodmap -e "keysym F5 = osfCopy"
    # Map SunPaste to F6
    xmodmap -e "keysym F6 = osfPaste"
    # Map SunCut to F7
    xmodmap -e "keysym F7 = osfCut"



You can also change $HOME/.dt/user.dtwmrc for "front" functionality:

Code:

    Keys DtKeyBindings
    {
        # Stop Alt+F4 from killing windows
        Alt<Key>F4       icon|window|ifkey      f.nop
   
        # Set Ctrl+Up_Arrow to SunFront Key function
        Ctrl<Key>Up      window|ifkey           f.raise_lower
    }

troy
Administrator
Posts: 231
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthday: 01/14
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: troy, Andyl