blob: 64db08a4fb5f31f6413eb251ffbfd2099f01c1d5 (
plain)
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
26
27
|
#!/bin/sh
xmodmap -pke | while read line; do
set -- $line
sep=""
shift
keycode="$1"
shift
shift
if test "$1" = ""; then
continue
fi
printf " [ %3s ] = { " "$keycode"
while test "$1" != ""; do
case "$1" in
NoSymbol | XF86_*)
keysym="0"
;;
*)
keysym="XK_$1"
;;
esac
echo -n "${sep}${keysym}"
sep=", "
shift
done
echo " },"
done
|