From 345f8d5ff5fe7e909e8e9aae6a7d02981263ff91 Mon Sep 17 00:00:00 2001 From: Marco Gerards Date: Sun, 6 Mar 2011 17:45:44 -0300 Subject: 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. --- console-client/xkb/xkb-data/symbols/hurd | 125 +++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 console-client/xkb/xkb-data/symbols/hurd (limited to 'console-client/xkb/xkb-data/symbols/hurd') 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 + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 1), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 2), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 3), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 4), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 5), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 6), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 7), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 8), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction () , SwitchScreen (screen = 9), + NoAction () ] + }; + key + { + 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 + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), SwitchScreen (screen -= 1), + NoAction () ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), SwitchScreen (screen += 1), + NoAction () ] + }; + + // Scroll the console up or down (one line). + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), ConsScroll (line -= 1) ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), ConsScroll (line += 1) ] + }; + + // Scroll the console up or down (1/2 screen). + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), NoAction (), + ConsScroll (screen -= 0.5) ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), NoAction (), + ConsScroll (screen += 0.5) ] + }; + + // Scroll the console to 0%, 25%, 75% or 100%. + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), + ConsScroll (percentage = 0), + ConsScroll (percentage = 25) ] + }; + key + { + type[Group1] = "HURD", + actions[Group1] = [ NoAction (), + ConsScroll (percentage = 100), + ConsScroll (percentage = 75) ] + }; +}; -- cgit v1.2.3