// Edited by Markus Raab
//
// based on a keyboard map from an 'xkb/symbols/de' file
//
// changes the {} (braceleft, braceright)
//
// $XKeyboardConfig: xkeyboard-config/symbols/de,v 1.18 2007-10-07 21:20:08 svu Exp $
// $XFree86: xc/programs/xkbcomp/symbols/de,v 1.6 2003/09/08 13:12:51 pascal Exp $

default
xkb_symbols "basic" {

    include "latin(type4)"

    name[Group1]="Germany";

    key 	{ [         2,   quotedouble,  twosuperior,    oneeighth ]	};
    key 	{ [         3,   braceleft, threesuperior,    sterling ]	};
    key 	{ [         4,   braceright,   onequarter,     currency ]	};
    key 	{ [         7, slash, dollar]	};
    key 	{ [         0, equal, section]	};

    key  {type[Group1]="FOUR_LEVEL_PLUS_LOCK",  symbols[Group1]=
                  [ssharp, question, backslash, questiondown, 0x1001E9E ]};
// The unicode capital letter sharp s U+1E9E is transformed to "SS"
// to match the rules for capitalizing sharp s in german.
// If the capital sharp s is needed, delete the line
// starting with  from /usr/share/X11/locale/iso8859-15/Compose.
// If both doubled S and capital sharp s are needed, use  0x1001E9E
// for capital sharp s and some free unicode codepoint like 0x1001E9C
// for doubled S. Don`t forget to change this in the Compose file, too.

    key 	{ [dead_acute, dead_grave, dead_cedilla,  dead_ogonek ]	};

    key 	{ [         e,          E,     EuroSign,     EuroSign ]	};
    key 	{ [         z,          Z,    leftarrow,          yen ]	};
    key 	{ [udiaeresis, Udiaeresis, dead_diaeresis, dead_abovering ] };
    key 	{ [      plus,   asterisk,   dead_tilde,  dead_macron ]	};

    key 	{ [odiaeresis, Odiaeresis, dead_doubleacute, dead_doubleacute ] };
    key 	{ [adiaeresis, Adiaeresis, dead_circumflex, dead_caron]	};
    key 	{ [dead_circumflex, degree,     notsign,      notsign ]	};

    key 	{ [numbersign, apostrophe,   dead_grave,   dead_breve ]	};
    key 	{ [         y,          Y, guillemotleft,        less ]	};

    include "kpdl(comma)"

    include "level3(ralt_switch)"
};

partial alphanumeric_keys
xkb_symbols "nodeadkeys" {

    // modify the basic German layout to not have any dead keys

    include "de(basic)"
    name[Group1]="Germany - Eliminate dead keys";

    key 	{ [asciicircum,    degree,      notsign,      notsign ]	};
    key 	{ [apostrophe,      grave,      cedilla,      cedilla ]	};
    key 	{ [udiaeresis, Udiaeresis,    diaeresis,    diaeresis ]	};
    key 	{ [      plus,   asterisk,   asciitilde,       macron ]	};
    key 	{ [odiaeresis, Odiaeresis,  doubleacute,  doubleacute ]	};
    key 	{ [adiaeresis, Adiaeresis,  asciicircum,  asciicircum ]	};
    key 	{ [numbersign, apostrophe,        grave,        grave ]	};
    key 	{ [     minus, underscore, dead_belowdot,    abovedot ]	};
};

partial alphanumeric_keys
xkb_symbols "deadgraveacute" {
    // modify the basic German layout to have only acute and grave
    // as dead keys (tilde and circumflex are needed as spacing characters
    // in many programming languages)

    include "de(basic)"
    name[Group1]="Germany - Dead grave acute";

    key 	{ [asciicircum,    degree,      notsign,      notsign ]	};
    key 	{ [      plus,   asterisk,   asciitilde,  dead_macron ]	};
    key 	{ [numbersign, apostrophe,        grave,        grave ]	};
};

partial alphanumeric_keys
xkb_symbols "deadacute" {
    // modify the basic German layout to have only acute as
    // dead keys (ASCII grave, tilde and circumflex are needed as
    // spacing characters in many programming languages and text formatters)

    include "de(deadgraveacute)"

    name[Group1]="Germany - Dead acute";

    key 	{ [dead_acute,      grave, dead_cedilla,  dead_ogonek ]	};
    key 	{ [numbersign, apostrophe,   dead_grave,   dead_grave ]	};
};

partial alphanumeric_keys
xkb_symbols "ro" {
    // add romanian-specific letters to the basic German layout.
    // Romanian symbols are accessible with combination of  and
    // 'a', 's', 't', 'i', 'รค (ä)' (+ for capital letters).
    // To view romanian-specific symbols, add "export LC_CTYPE=ro_RO"
    // or "export LC_CTYPE=de_DE.utf8" to your .profile.

    include "de(basic)"

    name[Group1]="Germany - Romanian keyboard with German letters";

    key  { [         t,    T,           tcedilla,     Tcedilla    ] };
    key  { [         i,    I,        icircumflex,  Icircumflex    ] };
    key  { [         a,    A,        acircumflex,  Acircumflex    ] };
    key  { [         s,    S,           scedilla,     Scedilla    ] };
    key  { [ adiaeresis,   Adiaeresis,    abreve,       Abreve    ] };
};

partial alphanumeric_keys
xkb_symbols "ro_nodeadkeys" {
    // add romanian-specific letters to the German nodeadkeys layout.
    // Read the comment for de_ro !

    include "de(nodeadkeys)"
    name[Group1]="Germany - Romanian keyboard with German letters, eliminate dead keys";

    key  { [         t,    T,           tcedilla,     Tcedilla    ] };
    key  { [         i,    I,        icircumflex,  Icircumflex    ] };
    key  { [         a,    A,        acircumflex,  Acircumflex    ] };
    key  { [         s,    S,           scedilla,     Scedilla    ] };
    key  { [ adiaeresis,   Adiaeresis, abreve,       Abreve       ] };
};

// German Dvorak keymap by Thorsten Staerk (www.staerk.de/thorsten)
// Have acute and grave as dead keys, tilde and circumflex alive as they are needed 
// in many programming languages.
// to use this keymap, use a 105-key-keyboard and the command setxkbmap -model pc105 -layout dvorak -variant de
// source: http://www-lehre.informatik.uni-osnabrueck.de/~rfreund/dvorak.php
partial alphanumeric_keys 
xkb_symbols "dvorak" {
    include "us(dvorak)"

    name[Group1]="Germany - Dvorak";

    key  { [ asciicircum, degree ] };

    key  { [ 1, exclam, onesuperior ] };
    key  { [ 2, quotedbl, twosuperior ] };
    key  { [ 3, section, threesuperior ] };
    key  { [ 4, dollar, bar ] };
    key  { [ 5, percent, bar ] };
    key  { [ 6, ampersand, brokenbar ] };
    key  { [ 7, slash, dollar] };
    key  { [ 8, parenleft, bracketleft ] };
    key  { [ 9, parenright, bracketright ] };
    key  { [ 0, equal, section] };
    key  { [ plus, asterisk, asciitilde ] };
    key  { [ less, greater, dead_grave ] };

    key  { [ udiaeresis, Udiaeresis, at ] };
    key  { [ comma, semicolon, dead_diaeresis ] };
    key  { [ period, colon ] };
    key  { [ c, C, copyright, Cacute ] };
    key  { [ t, T, trademark ] };
    key  { [ z, Z, zabovedot, Zabovedot ] };
    key  { [ question, ssharp ] };
    key  { [ slash, backslash, dead_acute ] };

    key  { [ a, A, at, aogonek ] };
    key  { [ o, O, oacute, Oacute ] };
    key  { [ e, E, EuroSign, eogonek ] };
    key  { [ i, I ] };
    key  { [ u, U ] };
    key  { [ h, H ] };
    key  { [ d, D ] };
    key  { [ r, R, registered ] };
    key  { [ n, N, nacute, Nacute ] };
    key  { [ s, S, sacute, Sacute] };
    key  { [ l, L, lstroke, Lstroke ] };

    key  { [ odiaeresis, Odiaeresis ] };
    key  { [ q, Q, at ] };
    key  { [ m, M, mu ] };
    key  { [ numbersign, apostrophe ] };

    key  { [ minus, underscore, hyphen, diaeresis] };

    key  { [ adiaeresis, Adiaeresis, bar ] };

    include "level3(ralt_switch)"
};

partial alphanumeric_keys
xkb_symbols "Sundeadkeys" {

    // For naming consistency

    include "de(basic)"

};

partial alphanumeric_keys
xkb_symbols "sundeadkeys" {

    // For naming consistency

    include "de(Sundeadkeys)"

    name[Group1]="Germany - Sun dead keys";
};


// German NEO Eurokeys-Style
// adopted 2004 by Hanno Behrens 
// inspired by Dvorak/de-ergo  http://www.goebel-consult.de/de-ergo/

partial alphanumeric_keys 
xkb_symbols "neo" {

    include "us(dvorak)"

    name[Group1]= "Germany - Neostyle";

    key  { [ dead_circumflex, degree, notsign, paragraph	] };

    key  { [	    1,	exclam, exclamdown, onesuperior	] };
    key  { [	    2,	quotedbl,   dead_diaeresis, twosuperior ] };
    key  { [	    3,	paragraph, sterling, threesuperior ] };
    key  { [	    4,	dollar,    currency, onequarter	] };
    key  { [	    5,	percent,    bar,	onehalf	] };
    key  { [	    6,	ampersand,  brokenbar, threequarters ] };
    key  { [	    7,	slash,      dollar, division	] };
    key  { [	    8,	parenleft,  bracketleft, guillemotleft ] };
    key  { [	    9,	parenright, bracketright, guillemotright ] };
    key  { [	    0,	equal,	    section] };
    key  { [	minus,	underscore, hyphen, diaeresis	 ] };
    key  { [ dead_acute,dead_grave,   dead_cedilla, dead_ogonek  ] };

    key  { [ 	    q,  Q,	at			 ] };
    key  { [	    v,	V,	masculine, ordfeminine   ] };
    key  { [	    l,	L,      lstroke, Lstroke	 ] };
    key  { [	    c,	C,      ccedilla,copyright	 ] };
    key  { [	    w,	W,	Greek_omega, Greek_OMEGA ] };
    key  { [	    k,	K,	Greek_kappa, Greek_KAPPA ] };
    key  { [	    h,	H,      Greek_epsilon, Greek_EPSILON ] };
    key  { [	    g,	G, 	Greek_gamma, Greek_GAMMA ] };
    key  { [	    f,	F,      ordfeminine		 ] };
    key  { [	    j,	J,	Greek_iota, Greek_IOTA	 ] };
    key  { [  ssharp, question, 	backslash, questiondown  ] };
    key  { [	 plus,	asterisk,   dead_tilde,	plusminus ] };

    key  { [	    u,	U,	Greek_delta, Greek_DELTA ] };
    key  { [	    i,	I,      idotless, Iabovedot	 ] };
    key  { [	    a,	A,      at, Greek_alpha		 ] };
    key  { [	    e,	E,      EuroSign,	cent	 ] };
    key  { [	    o,	O,	oslash,	Ooblique	 ] };
    key  { [	    s,	S,      Greek_sigma, Greek_SIGMA ] };
    key  { [	    n,	N,	Greek_nu, Greek_NU	 ] };
    key  { [	    r,	R,      registered,trademark	 ] };
    key  { [	    t,	T,      thorn,          THORN	 ] };	//Greek_theta, Greek_THETA/tcedilla, Tcedilla
    key  { [	    d,	D,      eth,		ETH	 ] };
    key  { [	    y,	Y,      yen			 ] };
    key  { [ numbersign, apostrophe, grave		 ] };

    
    key  { [  less, greater, 	guillemotleft, guillemotright	] };
    key  { [ odiaeresis, Odiaeresis, oe, OE		 ] };
    key  { [ udiaeresis,Udiaeresis, apostrophe, asciitilde ] };  
    key  { [ adiaeresis, Adiaeresis, ae, AE		 ] };
    key  { [	    p,	P,      thorn,	THORN		 ] };
    key  { [	    z,	Z,	Greek_zeta, Greek_ZETA	 ] };
    key  { [	    b,	B,	Greek_beta, Greek_BETA	 ] };
    key  { [	    m,	M,	mu, Greek_MU			 ] };
    key  { [	comma,	semicolon, dead_cedilla, cedilla ] };
    key  { [      period,	colon,  periodcentered		 ] };
    key  { [	    x,	X,      multiply		 ] };

    key  { [	 space,	space, nobreakspace, nobreakspace ] };

    
    // End "Editing" section, begin "Keypad"
//    key  {	[  Num_Lock, Pointer_EnableKeys		]	};

// Ungrab cancels server/keyboard/pointer grabs
//    key  {  [KP_Divide, KP_Divide, division]  };

// ClsGrb kills whichever client has a grab in effect
//    key  {  [KP_Multiply, KP_Multiply, periodcentered]  };

// -VMode switches to the previous video mode
//    key  { [ KP_Subtract, KP_Subtract, notsign]   };

    key   {	[  KP_Home,	KP_7, seveneighths, oneeighth	]	};
    key   {	[  KP_Up,	KP_8, uparrow, fiveeighths	]	};
    key   {	[  KP_Prior,	KP_9, threeeighths, threeeighths ]	};

// +VMode switches to the next video mode
//    key  {	[  KP_Add, KP_Add, plusminus ]    };

    key   {	[  KP_Left,	KP_4, leftarrow, onequarter		]	};
    key   {	[  KP_Begin,	KP_5, dagger, onehalf 			]	};
    key   {	[  KP_Right,	KP_6, rightarrow, threequarters	]	};

    key   {	[  KP_End,	KP_1, onesuperior, onesuperior		]	};
    key   {	[  KP_Down,	KP_2, downarrow, twosuperior		]	};
    key   {	[  KP_Next,	KP_3, threesuperior, threesuperior	]	};
    key  {	[  	KP_Enter	]	};
    key  {	[  	KP_Equal	]	};

    key   {	[  KP_Insert,	KP_0, percent, degree			]	};
    key  {  	[  KP_Delete,	KP_Decimal, periodcentered, comma  ]	};
    // End "Keypad" section

    include "level3(ralt_switch)"
};
 
// Copied from macintosh_vndr/de
// olh@suse.de   very close to MacOS map

partial alphanumeric_keys 
xkb_symbols "mac" {

    include "de"
    name[Group1]= "Germany - Macintosh";

    // Alphanumeric section
    key 	{ [         1,     exclam,   exclamdown,           at ]	};
    key 	{ [         5,    percent,  bracketleft       ]	};
    key 	{ [         6,  ampersand, bracketright       ]	};
    key 	{ [         7,      slash,          bar,    backslash ]	};
    key 	{ [         8,  parenleft,    paragraph,   asciitilde ]	};
    key 	{ [         9, parenright,    dollar]	};
    key 	{ [         q,          Q, guillemotleft, guillemotright ]	};
    key 	{ [         r,          R,   registered       ]	};
    key 	{ [         u,          U,    diaeresis,       Aacute ]	};
    key 	{ [         i,          I,        slash,  Ucircumflex ]	};
    key 	{ [ udiaeresis, Udiaeresis, periodcentered,    degree ]	};
    key 	{ [      plus,   asterisk,   asciitilde       ]	}; 
    key 	{ [         a,          A,        aring,        Aring ]	};
    key 	{ [         g,          G,    copyright       ]	};
    key 	{ [         h,          H,  ordfeminine       ]	};
    key 	{ [         l,          L,           at       ]	};
    key 	{ [ odiaeresis, Odiaeresis,  dead_acute       ]	};
    key 	{ [         n,          N,   asciitilde       ]	};

};

partial alphanumeric_keys 
xkb_symbols "mac_nodeadkeys" {
    // modify the standard German mac layout to not have any dead keys
    include "de(mac)"
    name[Group1]= "Germany - Macintosh, eliminate dead keys";
    key 	{ [         4,     dollar,   onequarter,     currency ]	};

    key 	{ [ asciicircum,    degree,     notsign       ]	};
    key 	{ [      acute,      grave,     cedilla       ]	};
    key 	{ [ udiaeresis, Udiaeresis,   diaeresis       ]	};
    key 	{ [       plus,   asterisk,  asciitilde,       macron ]	};
    key 	{ [ odiaeresis, Odiaeresis,       acute       ]	};
    key 	{ [ adiaeresis, Adiaeresis, asciicircum       ]	};

    key 	{ [ numbersign, apostrophe,       grave       ]	};
};
Fr Jul 30 13:54:24 CEST 2021
patent_button.gif valid-html401.png elektra.jpg fsfe-logo.png valid-css.png vim.gif anybrowser.gif