Bug#547914: x11-common: Default /etc/X11/Xsession doesn't support ~/.Xkbmap
Package: x11-common
Version: 1:7.3+19
Severity: wishlist
Tags: patch
Xsession from GDM provides support for very usefull file ~/.Xkbmap (cmdline for setkbmap). Xsession from x11-common not. I've made very simple file /etc/X11/Xsession.d/60x11-set_keymap, which adds support for ~/.Xkbmap. It's based on Xsession from GDM.
========================================
usermodmap="$HOME/.Xmodmap"
userxkbmap="$HOME/.Xkbmap"
if [ -f "$userxkbmap" ]; then
setxkbmap `cat "$userxkbmap"`
XKB_IN_USE=yes
fi
# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
unset XKB_IN_USE
======================================
-- System Information:
Debian Release: 5.0.2
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-globus (SMP w/2 CPU cores)
Locale: LANG=be_BY.UTF-8, LC_CTYPE=be_BY.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages x11-common depends on:
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii debianutils 2.30 Miscellaneous utilities specific t
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
x11-common recommends no packages.
x11-common suggests no packages.
-- debconf information excluded
Reply to: