File: brai

package info (click to toggle)
xkeyboard-config 2.26-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,192 kB
  • sloc: sh: 4,369; makefile: 474; ansic: 433; perl: 382; ruby: 207
file content (92 lines) | stat: -rw-r--r-- 2,511 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// 10-dot patterns on the home row + v and n
default  partial alphanumeric_keys
xkb_symbols "home_row" {
    include "brai(keypad)"

    name[Group1]="Braille";

    key <AC04>	{ [ braille_dot_1 ] };
    key <AC03>	{ [ braille_dot_2 ] };
    key <AC02>	{ [ braille_dot_3 ] };
    key <AC07>	{ [ braille_dot_4 ] };
    key <AC08>	{ [ braille_dot_5 ] };
    key <AC09>	{ [ braille_dot_6 ] };
    key <AC01>	{ [ braille_dot_7 ] };
    key <AC10>	{ [ braille_dot_8 ] };
    key <AB04>	{ [ braille_dot_9 ] };
    key <AB06>	{ [ braille_dot_10 ] };
};

// 6-dot patterns for the left hand
partial alphanumeric_keys
xkb_symbols "left_hand" {
    include "brai(keypad_left)"

    name[Group1]="Braille (left-handed)";

    key <AC03>	{ [ braille_dot_1 ] };
    key <AC02>	{ [ braille_dot_2 ] };
    key <AC01>	{ [ braille_dot_3 ] };
    key <AC04>	{ [ braille_dot_4 ] };
    key <AB04>	{ [ braille_dot_5 ] };
    key <AB05>	{ [ braille_dot_6 ] };
};

// 6-dot patterns for the left hand
partial alphanumeric_keys
xkb_symbols "left_hand_invert" {
    include "brai(left_hand)"

    name[Group1]="Braille (left-handed inverted thumb)";

    key <AB05>	{ [ braille_dot_5 ] };
    key <AB04>	{ [ braille_dot_6 ] };
};

// 6-dot patterns for the right hand
partial alphanumeric_keys
xkb_symbols "right_hand" {
    include "brai(keypad)"

    name[Group1]="Braille (right-handed)";

    key <AC07>	{ [ braille_dot_1 ] };
    key <AB06>	{ [ braille_dot_2 ] };
    key <AB05>	{ [ braille_dot_3 ] };
    key <AC08>	{ [ braille_dot_4 ] };
    key <AC10>	{ [ braille_dot_5 ] };
    key <AC09>	{ [ braille_dot_6 ] };
};

// 6-dot patterns for the right hand
partial alphanumeric_keys
xkb_symbols "right_hand_invert" {
    include "brai(right_hand)"

    name[Group1]="Braille (right-handed inverted thumb)";

    key <AB05>	{ [ braille_dot_2 ] };
    key <AB06>	{ [ braille_dot_3 ] };
};

// 6-dot patterns on the keypad
hidden partial keypad_keys
xkb_symbols "keypad" {
    key <KP4>	{ [ braille_dot_1 ] };
    key <KP1>	{ [ braille_dot_2 ] };
    key <KP0>	{ [ braille_dot_3 ] };
    key <KP5>	{ [ braille_dot_4 ] };
    key <KP6>	{ [ braille_dot_5 ] };
    key <KPAD>	{ [ braille_dot_6 ] };
};

// 6-dot patterns on the keypad with left hand
hidden partial keypad_keys
xkb_symbols "keypad_left" {
    key <KPMU>	{ [ braille_dot_1 ] };
    key <KPDV>	{ [ braille_dot_2 ] };
    key <NMLK>	{ [ braille_dot_3 ] };
    key <KPSU>	{ [ braille_dot_4 ] };
    key <KPAD>	{ [ braille_dot_5 ] };
    key <KPEN>	{ [ braille_dot_6 ] };
};