File: make-atkbd

package info (click to toggle)
hotkey-setup 0.1-17
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 148 kB
  • ctags: 37
  • sloc: ansic: 243; sh: 111; makefile: 57
file content (21 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
f=/var/run/hotkey-setup
p="sudo ./dumpkeycodes"
if [ -r $f ] ; then 
    echo -n "# Generated from $f dated "
    date -r $f
#else
#    echo -n "# Generated by $p at "
#    date
#    $p &
else
    exit 1
fi >atkbd.hk
while read e k; do
    if m=`LANG=C grep "=$k\$" key-constants`; then
	m=`echo $m | cut -d= -f1`
	echo -e "setkeycodes\t$e\t\$$m"
    else
	echo -e "#setkeycodes\t$e"
    fi
done <$f >>atkbd.hk