View Single Post
Old 09-27-2013, 02:39 AM   #3
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by Aeris View Post
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
Attached Files
File Type: txt keys.txt (1.8 KB, 234 views)

Last edited by baf; 09-27-2013 at 02:45 AM.
baf is offline   Reply With Quote