summaryrefslogtreecommitdiff
path: root/console-client/xkb/makeconf.sh
diff options
context:
space:
mode:
authorMarco Gerards <metgerards@student.han.nl>2011-03-06 17:45:44 -0300
committerDiego Nieto Cid <dnietoc@gmail.com>2011-03-17 18:34:16 -0300
commit345f8d5ff5fe7e909e8e9aae6a7d02981263ff91 (patch)
tree273103afc843d043239e30172176be82e2105dc3 /console-client/xkb/makeconf.sh
parentbebc64a9a0f064a0e5f8a3549aa01aa9ac79a2e9 (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/makeconf.sh')
-rw-r--r--console-client/xkb/makeconf.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/console-client/xkb/makeconf.sh b/console-client/xkb/makeconf.sh
new file mode 100644
index 00000000..15ce9bf1
--- /dev/null
+++ b/console-client/xkb/makeconf.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Update the default configuration with default.xkb
+
+# As input the file "default.xkb" is used.
+# You can generate this file with "xkbcomp":
+# "xkbcomp :0 -o default.xkb"
+# This extract the configuration out of the ":0" X server.
+# After that add the Hurd features to switch VCs, scroll, etc!!!!
+#
+# Hurd feature checklist:
+# Alt + F1...F12: Switch VC.
+# Alt + Left, Right: Switch to the console left or right of the current
+# console.
+# Alt + Up, Down: Scroll the console by one line up or down.
+# Ctrl + PgUp, PgDown: Scroll the console up or down with 1/2 screen.
+# Alt + Home: Scroll the console to the 0% of the scrollback buffer.
+# Ctrl + Home: Scroll the console to the 25% of the scrollback buffer.
+# Alt + End: Scroll the console to the 100% of the scrollback buffer.
+# Alt + End: Scroll the console to the 75% of the scrollback buffer.
+
+
+# Really ugly code, but it works :)
+echo "char *default_xkb_keymap = \"\\" > xkbdefaults.c
+# Escape " and \
+sed "s/\([\\\"]\)/\\\\\1/g" < default.xkb|awk ' { print $0 "\\n\\" } ' >> xkbdefaults.c
+echo "\\0\";" >> xkbdefaults.c