diff options
author | Marco Gerards <metgerards@student.han.nl> | 2011-03-06 17:45:44 -0300 |
---|---|---|
committer | Diego Nieto Cid <dnietoc@gmail.com> | 2011-03-17 18:34:16 -0300 |
commit | 345f8d5ff5fe7e909e8e9aae6a7d02981263ff91 (patch) | |
tree | 273103afc843d043239e30172176be82e2105dc3 /console-client/xkb/xkb-data/symbols/hurd | |
parent | bebc64a9a0f064a0e5f8a3549aa01aa9ac79a2e9 (diff) |
Add XKB parser and implementation.
* console-client/xkb/Compose: New file.
* console-client/xkb/MISSING-FEATURES: Likewise.
* console-client/xkb/README: Likewise.
* console-client/xkb/TODO: Likewise.
* console-client/xkb/compose.c: Likewise.
* console-client/xkb/default.xkb: Likewise.
* console-client/xkb/keysymdef.h: Likewise.
* console-client/xkb/ks_tables.h: Likewise.
* console-client/xkb/kstoucs.c: Likewise.
* console-client/xkb/lex.l: Likewise.
* console-client/xkb/makeconf.sh: Likewise.
* console-client/xkb/parser.y: Likewise.
* console-client/xkb/symname.c: Likewise.
* console-client/xkb/xkb-data/keymap/hurd: Likewise.
* console-client/xkb/xkb-data/symbols/hurd: Likewise.
* console-client/xkb/xkb-data/types/hurd: Likewise.
* console-client/xkb/xkb.c: Likewise.
* console-client/xkb/xkb.h: Likewise.
* console-client/xkb/xkbdata.c: Likewise.
* console-client/xkb/xkbdefaults.c: Likewise.
* console-client/xkb/xkbtimer.c: Likewise.
Diffstat (limited to 'console-client/xkb/xkb-data/symbols/hurd')
-rw-r--r-- | console-client/xkb/xkb-data/symbols/hurd | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/console-client/xkb/xkb-data/symbols/hurd b/console-client/xkb/xkb-data/symbols/hurd new file mode 100644 index 00000000..39edf2ae --- /dev/null +++ b/console-client/xkb/xkb-data/symbols/hurd @@ -0,0 +1,125 @@ +// -*- Mode: C -*- +default +xkb_symbols "hurd" { + /* Switch to local consoles by default. */ + // SwitchScreen.SameServer; + + /* Make F1 - F10 switch virtual consoles when Alt is held down. */ + key <FK01> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 1), + NoAction () ] + }; + key <FK02> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 2), + NoAction () ] + }; + key <FK03> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 3), + NoAction () ] + }; + key <FK04> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 4), + NoAction () ] + }; + key <FK05> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 5), + NoAction () ] + }; + key <FK06> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 6), + NoAction () ] + }; + key <FK07> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 7), + NoAction () ] + }; + key <FK08> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 8), + NoAction () ] + }; + key <FK09> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 9), + NoAction () ] + }; + key <FK10> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 10), + NoAction () ] + }; + + // Make the left and right cursor keys switch virtual consoles when + // Alt is held down. + key <LEFT> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), SwitchScreen (screen -= 1), + NoAction () ] + }; + key <RGHT> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), SwitchScreen (screen += 1), + NoAction () ] + }; + + // Scroll the console up or down (one line). + key <UP> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), ConsScroll (line -= 1) ] + }; + key <DOWN> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), ConsScroll (line += 1) ] + }; + + // Scroll the console up or down (1/2 screen). + key <PGUP> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), NoAction (), + ConsScroll (screen -= 0.5) ] + }; + key <PGDN> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), NoAction (), + ConsScroll (screen += 0.5) ] + }; + + // Scroll the console to 0%, 25%, 75% or 100%. + key <HOME> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), + ConsScroll (percentage = 0), + ConsScroll (percentage = 25) ] + }; + key <END> + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), + ConsScroll (percentage = 100), + ConsScroll (percentage = 75) ] + }; +}; |