blob: 9693e440eb2b2f5b30f1036ff5958823f88f9253 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
#
# borrowed from Fedora and modified to work with console-setup
#
[ -x /usr/bin/hal-set-property ] || exit 0
. /etc/default/keyboard >/dev/null 2>&1 || exit 0
hal_set () {
if [ -n "$2" ]; then
/usr/bin/hal-set-property --direct --udi "$UDI" --key input.xkb.$1 --string "$2"
else
/usr/bin/hal-set-property --direct --udi "$UDI" --key input.xkb.$1 --remove
fi
}
hal_set model $XKBMODEL
hal_set layout $XKBLAYOUT
hal_set variant $XKBVARIANT
hal_set options $XKBOPTIONS
|