SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files
/ __/ / / / / / / / / / <_ __ / // / ____ __ __ / /__ _____ _____ ____ ___/ / / __/ <__> / /| | / __ \ / / / / / _ / / __ > <___ > / ___> / _ /
/ <_         / / | |  \___ / / /_/ / / // / / /_/ / / __  / / /    / // /
\___>       <_/  |_> <____/ <___  / <____/ <_____/  \_____><_/    <____/
                             __/ /
                            <___/
                                                                       v 2.0

.NFO

E-Keyboard by Michal Veselenyi
v2.0 (May 16th 2004)

E-mail : vmicho@host.sk
Home : http://vmicho.host.sk

E-keyboard is an Enlightenment epplet used to switch between different keymaps (keyboard layouts) in X.
It is a graphical frontend to the 'setxkbmap' command. Actual keymap is shown using a flag and two or three letters (eg GB, SVK, ...). There are 18 built-in flags + 1 default. You can still add your own stuff. Flags are mapped at a 3D flag-like (or board-like) superquadratic. Then some lighting and phong are applied to make it look much nicer. Keymaps are cycled by pressing left or right mouse button on over the epplet (mouse wheel can be used too).
Help, Close & Config buttons will apear if you keep the mouse cursor over the epplet for about 1 second.
In the config dialog, you can add/delete/create new/update avaiable keymaps. Then you can add/rearrange the 'used' keymaps. The first in the queue will be the default keymap to show at startup (x-keymap isn't changed at applet's startup).


REQUIREMENTS

Linux (or Unix :)
Enlightenment Window Manager 0.16.x (http://enlightenment.org) imlib1-dev (maybe also imlib2-dev will work) libepplet-dev (tested with v0.8)


Authors

Michal Veselenyi


Contributors

??


Installing E-Keyboard
  • (if you wanna recompile, i.e. not to use precompiled binary (which may not work)) make
  • (change to root) make install
  • [Optional, just to have E-Keyboard icon in the E menu now] Regenerate the menus for enlightenment (in menu->maintenance) or Restart Enlightenment (menu->restart Enlightenment)
  • run the E-Keyboard epplet (from E menu or manually) It will create a default config file in ~/.enlightenment/epplets_conf/E-Keyboard If an old version config exists, it will be ERASED and recreated
  • Play a while with :D

Configuration

v2 new method:
* Press the config button on the eppplet and configure whatever you want

Old method (for hardcore geeks):
* Close or kill the epplet first

  • cd ~/.enlightenment/epplets_conf/E-Keyboard
  • Edit the E-Keyboard.cfg file (see below)
  • Re-run the epplet

The config file contains definitions in this format : <availableXX> <keymap> <name> <filename.png>

<availableXX> : available keymap #XX
<keymap> : keymap identifier, as a parameter for setxkbmap (sk, fr, cz_qwerty ...) <name> : string to be displayer below the flag (ie SVK, FRA, PL ...) - max 3 characters <filename.png> : a picture of a flag (or whatever) in PNG 24-bit color format

If the picture cannot be found, unknown.png is used.

<usedYY availableXX>
This is the list of keymaps to be displayed in the epplet.

Here is the list of avaiable flags and some keymaps. You can copy the line you want to the config file (~/.enlightenment/epplets_conf/E-Keyboard/E-Keyboard.cfg). See defaults.txt for defaults.
Just replace '#' by <availableXX> (XX=00, 01, 02, .... 99)

sk SK slovensko.png
gb GB gb.png
pl POL polska.png
...

To add a custom flag, copy the PNG file into the data/ directory (in source directory) and run "make install".
Or copy it directly to the Enlightenment root data directory, ie usually /usr/share/enlightenment/epplet_data/E-Keyboard/ (the exact directory is shown in the configuration dialog)


Tech note

Compiled and tested with:
Enlightenment 0.16.5, 0.16.6 and 0.16.7 gcc 3.2 / 3.3
imlib-dev 1.9.14
Debian unstable

Please e-mail me any comments, questions and bug reports at vmicho@host.sk

(=^.^=) EOF


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.