summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/kdebase/debian/80ubuntu-xmodmap
blob: 7774dd9b8fc6af5569c6c9891a8a87166ef9dee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Set the Ubuntu laptop keycode -> xkeysyms mapping (used by KDE)
#
# This file is sourced by Xsession(5), not executed.
# The "|| true" is to ensure that the Xsession script does not terminate on error

USRMODMAP="$HOME/.Xmodmap"

if [ -x /usr/bin/xmodmap ]; then
        if [ -f /usr/share/apps/kxkb/ubuntu.xmodmap ]; then
                /usr/bin/xmodmap /usr/share/apps/kxkb/ubuntu.xmodmap || true
        fi
        if [ -f "$USRMODMAP" ]; then
                /usr/bin/xmodmap "$USRMODMAP" || true
        fi
fi