Quote:
Originally Posted by Aeris
Also, colors of background and borders could be changed but I'm not able to.
|
I used this simple script to generate images for keyboard. You need
convert from
ImageMagic. You may change background color and add more graphic elements.
Convert is quite powerful tool.
The script will output images to kterm-keys directory in current folder.
Keys.txt files contains all keys data.
Some keys, as return, shift etc, I made separately in a graphic program.
You will need UTF-8 capable terminal and some font installed (I used Helvetica).
BTW. You are comparing your layout to old kterm layout. The latest one, made by nasser, has bigger images.
Code:
#!/bin/bash
height="30"
while read name char width
do
size="$width""x$height"
convert -size $size xc:transparent -pointsize 22 -fill black -gravity Center -draw "text 0,0 '$char'" -font Helvetica -background white ./kterm-keys/$name.png
done < keys.txt