Experiments with Linux APL keyboard:
I installed Fedora 19 on a Laptop.
Experiment 1: KDEWorked exactly as expected System Settings | Regional and Language - enable layouts. Add a layout. APL is the first one offered. Select it and select the dyalog variant.
Go to the Advanced tab and choose the layout switching option to be "Any Win key (while pressed)". Choose the Menu key for Compose.
Log out and in again. All works.
Experiment 2: GnomeThis did not work as expected. In fact I didn't get this to work at all. I went through a learning curve using dconf-editor which for those who have seen regedit on Windows will seem familiar. There is a program "gsettings" which is a front end for dconf and which does more sanity checking on the values than dconf. However, for actually seeing what is there then dconf-editor is a better viewer. There are two "keys" that appear to be relevant org|gnome|desktop|input-sources and org|gnome|libgnomekbd|keyboard. The first of these actually seems to make a difference the second does not seem to be honoured by the gnome desktop. Perhaps it is there for some future development.
Using these it is possible to set the gnome desktop to support both "en" and "apl". The language indicator actually shows "dya". However, I could not get any of the "while pressed" layout switching to work. A telling experiment was to run a terminal and enter:
sleep 10 ; setxkbmap -query
Change the language to APL using the little language tool during the 10 sec wait.
rules: evdev
model: pc104
layout: apl,gb,us
variant:dyalog,,
options:compose:menu,grp:win_switch
Where did that "us" come from? I didn't put it there.
It seems that changing the language is doing a complete setxkbmap rather than using the "layout as group" approach that gnome itself introduced in 2007 (ish).
I found no way to get a workable APL keyboard under gnome. In fact it is this problem of not having a latching shift (while pressed) to change layout that means we have to go through the IME approach on Windows.
Experiment 3: XfceApplications Menu|Setting|Keyboard choose Layout tab. Turn off the "Use system defaults". APL is not in the list of available layouts.
Now you should have a file:
Code: Select all
~/.config/xfce4/xfconf/xfce-perchannel-xml/keyboard-layout.xml
Change, or introduce lines for XkbLayout, XkbVariant, XkbOptions so that it looks like (with your appropriate base language - probably not "gb"):
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<channel name="keyboard-layout" version="1.0">
<property name="Default" type="empty">
<property name="XkbDisable" type="bool" value="false"/>
<property name="XkbLayout" type="string" value="gb,apl"/>
<property name="XkbVariant" type="string" value=",dyalog"/>
<property name="XkbOptions" type="string" value="compose:menu,grp:win_switch"/>
</property>
</channel>
Log out and log in. You should now have a working APL keyboard using the "Win" key as your shift into APL.
Warning: It is incredibly easy to overwrite this file using the Keyboard tool.
Experiment 4: LXDEI could not find a tool to set Language or Layout options. Also my menus were now cluttered with KDE, Gnome, ... programs so it was hard to tell what was "pure" LXDE. I edited
Code: Select all
/etc/X11/xorg.conf.d/00-keyboard.conf
to look like:
Code: Select all
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "gb,apl"
Option "XkbVariant" ",dyalog"
Option "XkbOptions" "compose:menu,grp:win_switch"
EndSection
This is a system wide file and you will need root permissions to change it.
Log out and log in and you will now have a working APL keyboard. Not ideal but if you are the only user of the machine then it is probably adequate.
Conclusion:Avoid Gnome. Since this is the Fedora default this is a bit of a pain.
For an easy life use KDE.
If you want a cut down, minimalist desktop then XFCE and LXDE are usable options.
To get extra desktops then
sudo yum install @LXDE
seems to work. Substitute KDE, XFCE as appropriate. If you are installing from the DVD then KDE is given as an option during the install.