#!/bin/sh # $Id$ VENDOR=`xdpyinfo | grep 'vendor string'` case "$VENDOR" in *'The X.Org Foundation'|*'The XFree86 Project, Inc'|*'Mandrake Linux'*) XKBD="pc" ;; *'X Consortium') XKBD="sun" ;; *'Network Computing Devices Inc.') XKBD="ncd" ;; *) echo "$0: unknown $VENDOR" 1>&2 esac if [ "$1" = load ] ; then xmodmap .xmodmap-$XKBD else echo $XKBD export XKBD fi