edytujemy
/etc/X11/xkb/symbols/pl
dodajac wyroznione linie i pod PrALT+5 znajdzie sie symbol €

Cytat:
// $XKeyboardConfig: xkbdesc/symbols/pl,v 1.9 2005/06/17 18:54:43 svu Exp $

// based on a keyboard map from an 'xkb/symbols/pl' file
//
// $XFree86: xc/programs/xkbcomp/symbols/pl,v 1.3 2003/04/19 12:22:12 pascal Exp $

partial default alphanumeric_keys
xkb_symbols "basic" {

include "latin"

name[Group1]="Poland";

key { [ e, E, eogonek, Eogonek ] };
key { [ o, O, oacute, Oacute ] };
key { [ 5, percent, EuroSign, EuroSign ] };
key { [ a, A, aogonek, Aogonek ] };
key { [ s, S, sacute, Sacute ] };

key { [ z, Z, zabovedot, Zabovedot ] };
key { [ x, X, zacute, Zacute ] };
key { [ c, C, cacute, Cacute ] };
key { [ n, N, nacute, Nacute ] };

include "keypad(comma)"

include "level3(ralt_switch)"
};

partial alphanumeric_keys
xkb_symbols "qwertz" {

// Describes the differences between a very simple en_US
// keyboard and a very simple QWERTZ Polish keybaord

include "latin(type3)"

name[Group1]="Poland - qwertz";

key { [ 1, exclam, asciitilde, exclamdown ] };
key { [ 2, quotedbl, dead_caron, oneeighth ] };
key { [ 3, numbersign, dead_circumflex, sterling ] };
key { [ 4, dollar, dead_breve, dollar ] };
# key { [ 5, percent, degree, threeeighths ] };
key { [ 5, percent, EuroSign, EuroSign ] };
key { [ 6, ampersand, dead_ogonek, fiveeighths ] };
key { [ 7, slash, dead_grave, seveneighths ] };
key { [ 8, parenleft, dead_abovedot, trademark ] };
key { [ 9, parenright, dead_acute, plusminus ] };
key { [ 0, equal, dead_doubleacute, degree ] };
key { [ plus, question, dead_diaeresis, questiondown ] };
key { [apostrophe, asterisk, dead_cedilla, dead_ogonek ] };

key { [ e, E, EuroSign, cent ] };
key { [ zabovedot, nacute, division, dead_abovering ] };
key { [ sacute, cacute, multiply, dead_macron ] };

key { [ s, S, dstroke, section ] };
key { [ d, D, Dstroke, ETH ] };
key { [ k, K, kra, ampersand ] };
key { [ l, L, lstroke, Lstroke ] };
key { [ lstroke, Lstroke, dollar, dead_doubleacute ] };
key { [ aogonek, eogonek, ssharp, dead_caron ] };
key { [ abovedot, dead_ogonek, notsign, notsign ] };

key { [ oacute, zacute, dead_grave, dead_breve ] };
key { [ c, C, cent, copyright ] };
key { [ minus, underscore, dead_belowdot, dead_abovedot ] };

include "keypad(comma)"

include "level3(ralt_switch)"
};

// Polish Dvorak keymaps
// by Rafal Rzepecki

// The base keymap "pl" places Polish quotes on quotemark key and
// moves the dead symbols from there to "1/!" key. If you are used to common
// dead keys placement, you could use "pl_altquotes"; in this layout
// dead keys remain in the old place, whereas Polish quotes are placed on the
// "1/!" key. If you do not use Polish quotes at all, you can use "pl_basic" map.

// Basic Polish keymap (without Polish quotes)
partial alphanumeric_keys
xkb_symbols "dvorak" {
include "us(dvorak)"

name[Group1] = "Poland - Dvorak";

key { [ c, C, cacute, Cacute ] };
key { [ l, L, lstroke, Lstroke ] };
key { [ a, A, aogonek, Aogonek ] };
key { [ o, O, oacute, Oacute ] };
key { [ e, E, eogonek, Eogonek ] };
key { [ n, N, nacute, Nacute ] };
key { [ s, S, sacute, Sacute ] };
key { [ v, V, zacute, Zacute ] };
key { [ z, Z, zabovedot, Zabovedot ] };
key { [ 5, percent, EuroSign, EuroSign ] };
# include "keypad(comma)"

// this to allow writing ALL CAPS with a Shift key
include "level3(ralt_switch)"

// use one of compose:* options to choose Multi_key, if you will,
// or layout +level3(ralt_switch_multikey) to revert standard behaviour
};

// Default Polish keymap with Polish quotes on quotemark key
partial alphanumeric_keys
xkb_symbols "dvorak_quotes" {
include "pl(dvorak)"

name[Group1] = "Poland - Dvorak, Polish quotes on quotemark key";

key { [ apostrophe, quotedbl, doublelowquotemark, rightdoublequotemark ] };

// Dead symbols moved to this key
key { [ 1, exclam, dead_acute, dead_diaeresis ] };
key { [ 5, percent, EuroSign, EuroSign ] };
};

// Polish keymap with Polish quotes on key "1/!"
partial alphanumeric_keys
xkb_symbols "dvorak_altquotes" {
include "pl(dvorak)"

name[Group1] = "Poland - Dvorak, Polish quotes on key 1/!";

key { [ 1, exclam, doublelowquotemark, rightdoublequotemark ] };
key { [ 5, percent, EuroSign, EuroSign ] };
};
Uwaga: To jest stary temat
Ta dyskusja jest starsza niż 90 dni. Informacje w niej zawarte mogą już nie być aktualne