/usr/bin/directvnc-xmapconv is in directvnc 0.7.7-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #!/bin/sh
# A script to convert a xmodmap-style file into one that directvnc understands.
# The file is passed through the C preprocessor to convert character keysyms
# to their numeric equivalents.
# The script reads the xmodmap file on its stdin and outputs directvnc-compatible
# on its stdout.
KEYSYMDEF=/usr/include/X11/keysymdef.h
if [ ! -r $KEYSYMDEF ]; then
echo "$0: $KEYSYMDEF does not exist. You may need to install X11 core wire protocol headers."
exit 1;
fi
FORCEDEFS=`grep '^#ifdef' $KEYSYMDEF | sed 's/#ifdef */-D/g'`
grep '^ *keycode' | sed 's/=//g' | awk '
{
for(i=3;i<=NF;i++) {
$i="XK_" $i;
}
print
}' | cpp -P $FORCEDEFS -imacros $KEYSYMDEF -
|