kmscon: add --xkb-keymap option for predefined keymaps
authorRan Benita <ran234@gmail.com>
Tue, 12 Mar 2013 16:31:47 +0000 (17:31 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 12 Mar 2013 16:31:47 +0000 (17:31 +0100)
commitd240c27ecb8c107eb52ab7a80eadbae3dab803e2
tree86cf5213b876850d3e6c2bc6dd00fe95a522d218
parente6d0d785436152a12f7ca9f159becba9fa17260d
kmscon: add --xkb-keymap option for predefined keymaps

This adds an --xkb-keymap <FILE> option to kmscon. When given, kmscon
will try to compile the keymap from the file before trying the other
options (like the XkbKeymap option in xorg.conf).

This is useful for users who have a customized XKB keymap, which is
usually kept in a single file. Example, in X:
xkbcomp $DISPLAY my_keymap.xkb
Customize my_keymap.xkb to your liking, and then in .xinitrc, or
xorg.conf:
xkbcomp my_keymap.xkb $DISPLAY
Now you can also do this in kmscon.conf.

Additionally, lacking such an option, kmscon is quite difficult to use
without an installed xkeyboard-config package, which provides the
infrastructure for the "rules" configuration mechanism. We might even
want to distribute some plain xkb file as a last ditch, for
robustness, if even the default RMLVO fails... without a keyboard a
terminal is not very useful.

(changed Ran's patch to use *_from_string() instead of *_from_file())
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
docs/man/kmscon.xml
src/kmscon_conf.c
src/kmscon_conf.h
src/kmscon_seat.c
src/uterm_input.c
src/uterm_input.h
src/uterm_input_internal.h
src/uterm_input_uxkb.c
tests/test_input.c
tests/test_vt.c