xxkb(1) | General Commands Manual | xxkb(1) |
xxkb - switches and indicates a current keyboard layout.
xxkb
The xxkb program shows the current keyboard layout (an XKB
group) and allows to switch it with a mouse click. It has some additional
features. The xxkb remembers the layout for each application window
and changes the keyboard state accordingly when the window gets a focus. The
xxkb can place an additional button on a window title bar and that
button is a switcher and an indicator for that separate window. If the
keyboard map has more than two layouts the xxkb can simplify a
switching using a two_state mode. In this mode the xxkb allows
to choose two layouts, one as a base layout and another one as an
alternative layout and then switch the keyboard state between them only.
Also the xxkb supports applications lists which allow to tune its
behavior for some separate applications.
The xxkb works with any window manager.
Working as an indicator the xxkb shows a current XKB layout
using one of four pixmaps and changes the pixmap when you change a layout
with the keyboard (using the key or the key combination specified in the
config file as an XKB group switcher) or using any other application which
able to change the XKB group. Also the xxkb shows the similar pixmaps
on each application window title bar which are indicators for separate
windows. Since the global indicator and the per window indicators duplicates
each other you can hide the global indicator or all per window indicators
using configure options.
Also you can use the xxkb as a layout switcher using a mouse button
click on the main xxkb window or one of the per window indicators. In
last case you switch the layout for the chosen application.
The xxkb reads all configure options from two files app-defaults/XXkb and ~/.xxkbrc.
Since the xxkb can keep the keyboard state for each application and restore the state when the focus is changed there are group of options which controls how the xxkb finds the application windows.
All these options make sense if the XXkb.button.enable switched on.
The xxkb allows to specify lists of applications that
requires some special actions. The applications can be specified using their
WM_CLASS or WM_NAME properties.
A common form of such option is
XXkb.app_list.property.action: an applications list
The action here can be one of ignore, start_alt or
alt_groupn. The ignore action means that the
xxkb must ignore the windows of those applications and doesn't add
them to the managed windows set. The start_alt action means that the
xxkb must set the keyboard state to the alternative layout when the
application starts. And the alt_group1, alt_group2, alt_group3
or alt_group4 actions allow to specify the alternative layout for
some applications if this layout should be different from the common
alternative layout specified in the XXkb.group.alt option.
The property can be one of wm_class_class, wm_class_name or
wm_name. The xxkb can identify an application using its window
properties WM_CLASS or WM_NAME. The WM_CLASS property
actually consists of two parts - a res_class and a res_name.
Thus the property field specifies what property or part of property
should be considered for the application identification.
By default all these lists are empty. A not empty list is a sequence of words
separated by space/tab. The xxkb accepts an asterisk as a part of
word. Long lists can be continued to the next line using a backslash as the
last char in the line.
For example:
XXkb.app_list.wm_name.ignore: Fvwm* *clock .br
Xman
Ivan Pascal
24 Jun 2002 | XXKB |