You probably want what's called a `compose key'.
What the compose key does is this: you press and release it. Then you press two keys, and it "counts as" their "most logical combination". Example: <compose>, Y and = generates the yen sign (¥). <compose>, + and - generates plus-minus (±). <compose>, a and ' generates a with an accent (á). Experiment, and see
http://en.wikipedia.org/wiki/Compose_key (and also the lists of combinations it links to).
The general thumbrules are these:
- the order doesn't matter: o" and "o both generate ö.
- accents: pressing a vowel and one of `'"^~ generally produces an accented wovel (or n~ => ñ).
- repeats: composing two identical character often produces an alternative version-- !! => ¡ (upside-down !), __ => ¯ (overbar), xx => × (cross product).
- ^ raises: 1^ => ¹ (1 raised), 0^ => ° (the degree symbol), .^ => · (dot product).
- painting: consider how you would draw the symbol, and approximate that. co => © (copyright symbol), -, => ¬ (logical negation).
If you can set this up with kcontrol, it's probably under keyboard layout options. You can also use
Code:
$ xmodmap -e 'keysym Shift_L = Shift_L Multi_key'
$ xmodmap -e 'keysym Shift_R = Shift_R Multi_key'
This will make shift-shift the compose key. If you want something different, consult the xmodmap manual. It's a not entirely non-trivial task to build a good mental model of how xmodmap works, so feel free to ask here (or, if you can find an irc channel to ask in you can get real-time answers).
Hope this helps.