1// Icelandic keyboard layout, by Hrafnkell Eiriksson - hkelle@rhi.hi.is 2// Fixes by Olafur Osvaldsson - oli@isnic.is - and Bjarni Ingi Gislason. 3 4default partial alphanumeric_keys 5xkb_symbols "basic" { 6 7 include "latin(type4)" 8 9 name[Group1]="Icelandic"; 10 11 key <TLDE> { [dead_abovering, dead_diaeresis, notsign, hyphen ] }; 12 key <AE02> { [ 2, quotedbl, twosuperior, oneeighth ] }; 13 key <AE04> { [ 4, dollar, onequarter, currency ] }; 14 key <AE11> { [odiaeresis, Odiaeresis, backslash, questiondown ] }; 15 key <AE12> { [ minus, underscore, dead_cedilla, dead_ogonek ] }; 16 17 key <AD10> { [ p, P, bar, Greek_pi ] }; 18 key <AD11> { [ eth, ETH, dead_diaeresis, dead_abovering ] }; 19 key <AD12> { [apostrophe, question, asciitilde, dead_macron ] }; 20 21 key <AC03> { [ d, D, U201e, U201c ] }; 22 key <AC10> { [ ae, AE, asciicircum, dead_doubleacute ] }; 23 key <AC11> { [dead_acute, dead_acute, dead_circumflex, dead_caron ] }; 24 key <BKSL> { [ plus, asterisk, grave, dead_breve ] }; 25 26 key <AB10> { [ thorn, THORN, dead_belowdot, dead_abovedot ] }; 27 28 include "level3(ralt_switch)" 29}; 30 31// Copied from macintosh_vndr/is. 32// Copyright (C) 2004, 2006 Ævar Arnfjörð Bjarmason <avarab@gmail.com> 33xkb_symbols "mac_legacy" { 34 name[Group1]= "Icelandic (Macintosh, legacy)"; 35 36 key <TLDE> { [ sterling, section, UF8FF, apostrophe ] }; // Apple logo 37 key <AE01> { [ 1, exclam, exclamdown, VoidSymbol ] }; 38 key <AE02> { [ 2, quotedbl, at, VoidSymbol ] }; 39 key <AE03> { [ 3, numbersign, U2122, sterling ] }; 40 key <AE04> { [ 4, dollar, cent, EuroSign ] }; 41 key <AE05> { [ 5, percent, U2030, infinity ] }; 42 key <AE06> { [ 6, ampersand, asciicircum, U2044 ] }; 43 key <AE07> { [ 7, slash, backslash, division ] }; 44 key <AE08> { [ 8, parenleft, bracketleft, braceleft ] }; 45 key <AE09> { [ 9, parenright, bracketright, braceright ] }; 46 key <AE10> { [ 0, equal, U2260, U2248 ] }; 47 key <AE11> { [ odiaeresis, Odiaeresis, oslash, Oslash ] }; 48 key <AE12> { [ minus, underscore, endash, emdash ] }; 49 50 key <AD01> { [ q, Q, paragraph, VoidSymbol ] }; 51 key <AD02> { [ w, W, U2211, VoidSymbol ] }; 52 key <AD03> { [ e, E, dead_grave, VoidSymbol ] }; 53 key <AD04> { [ r, R, registered, VoidSymbol ] }; 54 key <AD05> { [ t, T, degree, VoidSymbol ] }; 55 key <AD06> { [ y, Y, yen, VoidSymbol ] }; 56 key <AD07> { [ u, U, dead_diaeresis, VoidSymbol ] }; 57 key <AD08> { [ i, I, idotless, ordfeminine] }; 58 key <AD09> { [ o, O, dead_circumflex, masculine ] }; 59 key <AD10> { [ p, P, Greek_pi, Greek_PI ] }; 60 key <AD11> { [ eth, ETH, U201e, U201c ] }; 61 key <AD12> { [ apostrophe, question, questiondown, periodcentered] }; 62 63 key <AC01> { [ a, A, aring, Aring ] }; 64 key <AC02> { [ s, S, ssharp, abovedot ] }; 65 key <AC03> { [ d, D, U2202, U02DA ] }; 66 key <AC04> { [ f, F, function, macron ] }; 67 key <AC05> { [ g, G, copyright, breve ] }; 68 key <AC06> { [ h, H, bar, VoidSymbol ] }; 69 key <AC07> { [ j, J, U2206, doubleacute] }; 70 key <AC08> { [ k, K, notsign, VoidSymbol ] }; 71 key <AC09> { [ l, L, U2026, caron ] }; 72 key <AC10> { [ ae, AE, oe, OE ] }; 73 key <AC11> { [ dead_acute, dead_diaeresis, U201A, U2018 ] }; 74 key <BKSL> { [ plus, asterisk, U2022, plusminus ] }; 75 76 key <LSGT> { [ less, greater, section, UF8FF ] }; // Apple logo 77 key <AB01> { [ z, Z, Greek_OMEGA, VoidSymbol ] }; 78 key <AB02> { [ x, X, asciitilde, VoidSymbol ] }; 79 key <AB03> { [ c, C, ccedilla, Ccedilla ] }; 80 key <AB04> { [ v, V, U221A, U25CA ] }; 81 key <AB05> { [ b, B, U222B, VoidSymbol ] }; 82 key <AB06> { [ n, N, dead_tilde, VoidSymbol ] }; 83 key <AB07> { [ m, M, mu, VoidSymbol ] }; 84 key <AB08> { [ comma, semicolon, lessthanequal, guillemotleft ] }; 85 key <AB09> { [ period, colon, greaterthanequal, guillemotright ] }; 86 key <AB10> { [ thorn, THORN, U2019, U201d ] }; 87 88 include "level3(ralt_switch)" 89}; 90 91// Layout for newer Apple laptop and Aluminium keyboards (A1243/A1255 and later). 92// Copyright (C) 2013 Ævar Arnfjörð Bjarmason <avarab@gmail.com> 93partial alphanumeric_keys 94xkb_symbols "mac" { 95 name[Group1]= "Icelandic (Macintosh)"; 96 97 key <TLDE> { [ degree, dead_diaeresis, oslash, Oslash ] }; 98 key <AE01> { [ 1, exclam, exclamdown, VoidSymbol ] }; 99 key <AE02> { [ 2, quotedbl, at, VoidSymbol ] }; 100 key <AE03> { [ 3, numbersign, trademark, sterling ] }; 101 key <AE04> { [ 4, dollar, cent, EuroSign ] }; 102 key <AE05> { [ 5, percent, U2030, infinity ] }; 103 key <AE06> { [ 6, ampersand, asciicircum, U2044 ] }; 104 key <AE07> { [ 7, slash, braceleft, division ] }; 105 key <AE08> { [ 8, parenleft, bracketleft, braceleft ] }; 106 key <AE09> { [ 9, parenright, bracketright, braceright ] }; 107 key <AE10> { [ 0, equal, braceright, approxeq ] }; 108 key <AE11> { [ odiaeresis, Odiaeresis, backslash, U2260 ] }; 109 key <AE12> { [ minus, underscore, endash, emdash ] }; 110 111 key <AD01> { [ q, Q, at, paragraph ] }; 112 key <AD02> { [ w, W, U2211, section ] }; 113 key <AD03> { [ e, E, U20AC, questiondown ] }; 114 key <AD04> { [ r, R, registered, VoidSymbol ] }; 115 key <AD05> { [ t, T, degree, U2022 ] }; 116 key <AD06> { [ y, Y, yen, VoidSymbol ] }; 117 key <AD07> { [ u, U, dead_diaeresis, VoidSymbol ] }; 118 key <AD08> { [ i, I, idotless, ordfeminine ] }; 119 key <AD09> { [ o, O, dead_circumflex, masculine ] }; 120 key <AD10> { [ p, P, Greek_pi, Greek_PI ] }; 121 key <AD11> { [ eth, ETH, doublelowquotemark, leftdoublequotemark ] }; 122 key <AD12> { [ apostrophe, question, asciitilde, periodcentered ] }; 123 124 key <AC01> { [ a, A, aring, Aring ] }; 125 key <AC02> { [ s, S, ssharp, abovedot ] }; 126 key <AC03> { [ d, D, partialderivative, U02DA ] }; 127 key <AC04> { [ f, F, function, macron ] }; 128 key <AC05> { [ g, G, copyright, breve ] }; 129 key <AC06> { [ h, H, bar, cedilla ] }; 130 key <AC07> { [ j, J, U2206, doubleacute ] }; 131 key <AC08> { [ k, K, notsign, ogonek ] }; 132 key <AC09> { [ l, L, ellipsis, caron ] }; 133 key <AC10> { [ ae, AE, oe, OE ] }; 134 key <AC11> { [ dead_acute, dead_acute, asciicircum, leftsinglequotemark ] }; 135 key <BKSL> { [ plus, asterisk, grave, plusminus ] }; 136 137 key <LSGT> { [ less, greater, bar, UF8FF ] }; // Apple logo 138 key <AB01> { [ z, Z, Greek_OMEGA, VoidSymbol ] }; 139 key <AB02> { [ x, X, asciitilde, VoidSymbol ] }; 140 key <AB03> { [ c, C, ccedilla, Ccedilla ] }; 141 key <AB04> { [ v, V, radical, U25CA ] }; 142 key <AB05> { [ b, B, integral, VoidSymbol ] }; 143 key <AB06> { [ n, N, dead_tilde, VoidSymbol ] }; 144 key <AB07> { [ m, M, mu, VoidSymbol ] }; 145 key <AB08> { [ comma, semicolon, lessthanequal, guillemotleft ] }; 146 key <AB09> { [ period, colon, greaterthanequal, guillemotright ] }; 147 key <AB10> { [ thorn, THORN, rightsinglequotemark, rightdoublequotemark ] }; 148 149 include "level3(ralt_switch)" 150}; 151 152// This is a modified version of the English Dvorak layout that allows 153// you to type all Icelandic letters under X. It's not a full attempt at 154// nationalizing the layout as e.g. the Norwegian, Swedish and French 155// layouts which modify the primary keys of the basic Dvorak layout 156// extensively. 157 158// Rather it's a simple modification of 5 keys of the US Dvorak layout, 159// it adds Germanic/Icelandic style quotation marks („“), eth (ðÐ), ae 160// (æÆ), endash and emdash (–—), thorn (þÞ), EuroSign (€) and the German 161// Sharp S (ßẞ). These keys aren't used in the US version, making the 162// Icelandic version a superset of it. 163 164// Maybe someone else will make a "full" attempt at an Icelandic layout 165// but I was mostly interested in continuing to type English comfortably 166// as a primary function while being able to type the full Icelandic 167// alphabet as a secondary function. 168// -- Ævar Arnfjörð Bjarmason <avarab@gmail.com> 169 170// Icelandic Dvorak 171partial alphanumeric_keys 172xkb_symbols "dvorak" { 173 174 include "us(dvorak)" 175 include "eurosign(4)" 176 177 name[Group1]= "Icelandic (Dvorak)"; 178 179 key <AD11> { [ slash, question, U201e, U201c ] }; 180 key <AC02> { [ o, O, odiaeresis, Odiaeresis ] }; 181 key <AC06> { [ d, D, eth, ETH ] }; 182 key <AC10> { [ s, S, ae, AE ] }; 183 key <AC11> { [ minus, underscore, endash, emdash ] }; 184 key <AB06> { [ b, B, ssharp, U1E9E ] }; 185 key <AB10> { [ z, Z, thorn, THORN ] }; 186 187 include "level3(ralt_switch)" 188}; 189