- Zeitstempel:
- 10.05.2009 11:45:37 (vor 10 Jahren)
- Ort:
- linux/X
- Dateien:
-
- 1 gelöscht
- 1 bearbeitet
- 1 verschoben
Legende:
- Unverändert
- Hinzugefügt
- Entfernt
-
linux/X/de
r1803 r1827 217 217 // 218 218 // Authors: 219 // Stephan Hilb <stephan at ehilb dot de> 219 220 // <lucky at zankt dot net> 220 221 // Benjamin Kellermann <Benjamin dot Kellermann at gmx dot Germany> … … 241 242 // Compose (not a level): Mod3 + Tab 242 243 // Feststelltaste (Capslock): Shift + Shift 243 // Mod3-Lock: Mod3 + Mod3244 244 // Mod4-Lock: Mod4 + Mod4 245 245 // 246 // Levels in Xkbmap jargon to be found here in the definitions. 247 // These are the levels used, and Xorg's translations with type="EIGHT_LEVEL": 248 // -------------------------------------------------------------- 246 247 // NOTE: To get the desired Mod4-Lock the real modifier Mod2 was misused in order to get control over the lock-state! 248 // I wasn't able to get it working with a virtual modifier and I think its not that fatal, because Num-Lock (the original use for Mod2) isn't used in Neo anyways. 249 250 251 // Modifier-keys 252 // =============== 253 254 // Shift 255 // -------------------------------------------------------------- 256 // Shift + Shift = Caps_Lock 257 key.type[Group1] = "TWO_LEVEL"; 258 key <LFSH> { 259 symbols[Group1] = [ Shift_L, Caps_Lock ], 260 actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ] 261 }; 262 key <RTSH> { 263 symbols[Group1] = [ Shift_R, Caps_Lock ], 264 actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ] 265 }; 266 267 // Neo-Mod3 268 // -------------------------------------------------------------- 269 key.type[Group1] = "ONE_LEVEL"; 270 key <CAPS> { 271 vmods = LevelFive, 272 symbols[Group1] = [ ISO_Level3_Shift ], 273 actions[Group1] = [ SetMods(modifiers=LevelFive) ] 274 }; 275 key <BKSL> { 276 vmods = LevelFive, 277 symbols[Group1] = [ ISO_Level3_Shift ], 278 actions[Group1] = [ SetMods(modifiers=LevelFive) ] 279 }; 280 modifier_map Mod3 { <CAPS>, <BKSL> }; 281 282 // Neo-Mod4 283 // -------------------------------------------------------------- 284 key.type[Group1] = "THREE_LEVEL"; 285 // Mod4 + Mod4 = Mod4_Lock 286 key <LSGT> { 287 vmods = NumLock, 288 symbols[Group1] = [ Num_Lock, Num_Lock, Num_Lock ], 289 actions[Group1] = [ SetMods(modifiers=LevelThree), SetMods(modifiers=LevelThree), LockMods(modifiers=NumLock) ] 290 }; 291 key <RALT> { 292 vmods = NumLock, 293 symbols[Group1] = [ Num_Lock, Num_Lock, Num_Lock ], 294 actions[Group1] = [ SetMods(modifiers=LevelThree), SetMods(modifiers=LevelThree), LockMods(modifiers=NumLock) ] 295 }; 296 modifier_map Mod2 { <LSGT>, <RALT> }; 297 249 298 250 299 // Legend 251 300 // =============== 252 // I don't think we need EIGHT_LEVEL_ALPHABETIC because the Lock gets deactivated 253 // as soon as a Shift-key is pressed. 254 // Therefore there is no need for Lock + Shift. 255 // key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC"; 256 key.type[Group1] = "EIGHT_LEVEL"; 257 301 // Levels in Xkbmap jargon to be found here in the definitions. 302 // These are the levels used, and Xorg's translations: 303 // -------------------------------------------------------------- 258 304 // Xorg: Level1 Level2 Level3 Level4 Level5 Level6 Level7 Level8 259 305 // Neo: Ebene1 Ebene2 Ebene4 ??? Ebene3 Ebene5 Ebene6 ??? … … 261 307 262 308 263 // Modifier-keys264 // ===============265 266 // FIXME Force norepeat is not working correctly:267 // key <BKSL> { repeat = false };268 // key <LSGT> { repeat = false };269 // key <RALT> { repeat = false };270 271 // Shift272 // --------------------------------------------------------------273 // Redefinition of both Shift-keys in order to get the desired "Shift + Shift = Shift_Lock"274 key <LFSH> { [ Shift_L, Shift_Lock, Shift_L, Shift_Lock, Shift_L, Shift_Lock, Shift_L, Shift_Lock ] };275 key <RTSH> { [ Shift_R, Shift_Lock, Shift_R, Shift_Lock, Shift_R, Shift_Lock, Shift_R, Shift_Lock ] };276 277 // Neo-Mod3278 // --------------------------------------------------------------279 // Mod3 + Mod3 = Mod3_Lock280 key <LSGT> { [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Lock, ISO_Level3_Lock, ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Lock, ISO_Level3_Lock ] };281 key <RALT> { [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Lock, ISO_Level3_Lock, ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Lock, ISO_Level3_Lock ] };282 // The following is also done somewhere else, but I couldn't find where and since the283 // modifier_map is needed by ISO_Level5 too (see below) I'm adding it here.284 // Also see how Level-switching is done in "symbols/level3(ralt_switch)"285 modifier_map Mod5 { ISO_Level3_Shift }; // optional286 // This ^^^^ has nothing to do with the "Neo-Mod-Keys"!287 288 // Neo-Mod4289 // --------------------------------------------------------------290 // Mod4 + Mod4 = Mod4_Lock291 // The console-setup package doesn't like ISO_Level5_Shift and ISO_Level5_Lock, see292 // https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/363388293 key <CAPS> { [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ] };294 key <BKSL> { [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ] };295 // ISO_Level5_Shift alone won't have the desired effect in all applicitions, therefore296 // adding the following as it is done in "symbols/level5(rctrl_switch)".297 modifier_map Mod3 { ISO_Level5_Shift }; // mandatory298 // This ^^^^ has nothing to do with the "Neo-Mod-Keys"!299 300 301 309 // Alphanumeric-keys 302 310 // =============== 311 key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS"; 303 312 304 313 // Tab as Multi_key (Compose) … … 321 330 key <AE09> { [ 9, leftdoublequotemark, KP_Divide, NoSymbol, leftsinglequotemark, U27E9, U220B, NoSymbol ] }; 322 331 key <AE10> { [ 0, rightdoublequotemark, KP_Multiply, NoSymbol, rightsinglequotemark, zerosubscript, emptyset, NoSymbol ] }; 323 332 324 333 key <AE11> { [ minus, emdash, KP_Subtract, NoSymbol, NoSymbol, U2011, hyphen, NoSymbol ] }; 325 334 key <AE12> { [ dead_grave, NoSymbol, dead_doublegrave, NoSymbol, dead_diaeresis, dead_dasia, NoSymbol, NoSymbol ] }; … … 328 337 // Top Row 329 338 // -------------------------------------------------------------- 339 key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC"; 330 340 key <AD01> { [ x, X, U22EE, NoSymbol, ellipsis, Greek_xi, Greek_XI, NoSymbol ] }; 331 341 key <AD02> { [ v, V, BackSpace, BackSpace, underscore, NoSymbol, U222E, NoSymbol ] }; … … 341 351 342 352 key <AD11> { [ ssharp, U1E9E, U2212, NoSymbol, U017F, Greek_finalsmallsigma, jot, NoSymbol ] }; 353 354 key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS"; 343 355 key <AD12> { [ dead_acute, dead_cedilla, dead_doubleacute, NoSymbol, dead_stroke, dead_psili, dead_abovedot, NoSymbol ] }; 344 356 345 357 // Middle Row 346 358 // -------------------------------------------------------------- 359 key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC"; 347 360 key <AC01> { [ u, U, Home, Home, backslash, NoSymbol, mu, NoSymbol ] }; 348 361 key <AC02> { [ i, I, Left, Left, slash, Greek_iota, integral, NoSymbol ] }; … … 365 378 key <AB03> { [ adiaeresis, Adiaeresis, Next, Next, bar, Greek_eta, U2135, NoSymbol ] }; 366 379 key <AB04> { [ p, P, Return, Return, asciitilde, Greek_pi, Greek_PI, NoSymbol ] }; 367 key <AB05> { [ z, Z, NoSymbol,NoSymbol, grave, Greek_zeta, U2124, NoSymbol ] };380 key <AB05> { [ z, Z, Undo, NoSymbol, grave, Greek_zeta, U2124, NoSymbol ] }; 368 381 369 382 key <AB06> { [ b, B, colon, NoSymbol, plus, Greek_beta, U21D0, NoSymbol ] }; 370 383 key <AB07> { [ m, M, KP_1, NoSymbol, percent, Greek_mu, ifonlyif, NoSymbol ] }; 384 key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS"; 371 385 key <AB08> { [ comma, endash, KP_2, NoSymbol, quotedbl, Greek_rho, U21D2, NoSymbol ] }; 372 386 key <AB09> { [ period, enfilledcircbullet, KP_3, NoSymbol, apostrophe, U03D1, Greek_THETA, NoSymbol ] }; 387 key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC"; 373 388 key <AB10> { [ j, J, semicolon, NoSymbol, semicolon, Greek_theta, variation, NoSymbol ] }; 389 key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS"; 374 390 375 391 // Space key … … 380 396 // Keypad-keys 381 397 // =============== 382 383 // Num-Lock is no longer used with Neo:384 //key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD";385 398 386 399 // The former Numlock key:
Hinweis: Hilfe zur Verwendung der Changeset-Ansicht finden Sie unter TracChangeset.