Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-13-2014, 11:50 AM
|
#1
|
LQ Newbie
Registered: Jun 2009
Location: Japan, Hayama
Distribution: Mint 17, Cinnamon / Lubuntu 14.04
Posts: 17
Rep:
|
Keyboard editor
Good evening
Very long ago I used WordPerfect. That had a keyboard editor built in, allowing to assign individual keys differently.
Later I had to use a (not very elegant but still working) MS application to achieve that.
Achieve: I use English + German keyboard layouts.
But since I am used to the English KB layout, I would like to reassign the "z" and "y" keys, which are on these two KB layouts reversed.
Is there somewhere a little application out there, that lets me do that?
I have been looking but cannot find anything.
Thank you in advance.
|
|
|
08-13-2014, 01:48 PM
|
#2
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,291
|
You should be able to use the command setxkbmap to set a standard layout, or xmodmap to do low-level tinkering.
|
|
|
08-13-2014, 07:44 PM
|
#3
|
LQ Newbie
Registered: Jun 2009
Location: Japan, Hayama
Distribution: Mint 17, Cinnamon / Lubuntu 14.04
Posts: 17
Original Poster
Rep:
|
Thank you!
I will have to study about that.
Being anything but a computer expert the terms "setxkbmap", "xmodmap" mean precisely nothing to me,
so that I have absolutely no idea what to do and how to do it ...
|
|
|
08-14-2014, 12:04 PM
|
#4
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,227
|
The German keyboard layout is /usr/share/X11/xkb/symbols/de and it contains the lines
key <AD06> { [ z, Z, leftarrow, yen ]};
key <AB01> { [ y, Y, guillemotright, U203A ] };
If you swap over the "y" and the "z", that will give you qwerty instead of quertz the next time you log in. You have to repeat the trick when you re-install a new version of Linux, but it's a lot less trouble than learning and using xmodmap.
PS You need to run a terminal and become root with "su", then launch your editor; or else use "sudo name_of_editor" — it depends on your distro. That's why it's a good idea to put your distro name in your profile.
Last edited by DavidMcCann; 08-14-2014 at 12:07 PM.
Reason: addition
|
|
|
08-17-2014, 09:17 AM
|
#5
|
LQ Newbie
Registered: Jun 2009
Location: Japan, Hayama
Distribution: Mint 17, Cinnamon / Lubuntu 14.04
Posts: 17
Original Poster
Rep:
|
Thank you, but
Thank you!
That sounds like a really "workable" option.
However, even though I am the one and only user, set my account to "administrator",
running a terminal -> enter "su" + PW ...
I get the error "Authentication failure".
There is only one password that I set, there is only one account.
How can "authentication" fail?
And attempts at changing the permissions for the "de" file in order to make changes also failed.
Probably I made mistakes, but do not know where.
PS: Thank you for your hint about my profile.
Actually, I set up this account but used it only once several years ago.
My struggles to get friendly with Linux remain(ed) mostly futile, so I did not bother about setting up a fancy profile.
But today I added a few lines ...
|
|
|
08-17-2014, 10:47 AM
|
#6
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,227
|
That's because you're using Mint and Lubuntu, which don't use an administrative password. You need to type
sudo gedit /usr/share/X11/xkb/symbols/de
and then it will prompt for a password and you type the one that you used to log in.
|
|
|
08-24-2014, 09:37 AM
|
#7
|
LQ Newbie
Registered: Jun 2009
Location: Japan, Hayama
Distribution: Mint 17, Cinnamon / Lubuntu 14.04
Posts: 17
Original Poster
Rep:
|
I am really sorry to bother you, but ...
I still cannot make it work.
Thanks to you, I WAS able to edit the file. VERY good so far.
The original file, as you pointed out, looked like:
The German keyboard layout is /usr/share/X11/xkb/symbols/de and it contains the lines
key <AD06> { [ z, Z, leftarrow, yen ]};
key <AB01> { [ y, Y, guillemotright, U203A ] };
After my editing (copied from that file) it looks now like:
key <AD06> { [ y, Y, leftarrow, yen ] };
key <AB01> { [ z, Z, guillemotright, U203A ] };
(rebooted / restarted)
Yet, I still get the original configuration, where in the German KB layout z + y are reversed.
Did I make another mistake?
Or do I have to change THE OTHER instances (plural) of "z + y" occuring in the file?
(some look very scary to me)
Somewhere in the middle of the file it also says:
partial alphanumeric_keys
xkb_symbols "qwerty" {
// This layout should work exactly as a de with the exception
// of 'Z' and 'Y' keys, which are in the qwerty style (ie. swapped).
// 2008 by Matej Košík <kosik@fiit.stuba.sk>
include "de(basic)"
Does this mean, the original keyboard layout was SUPPOSED to work like a qerty KB? (it did not, though)
I appreciate your help.
|
|
|
08-24-2014, 10:52 AM
|
#8
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,227
|
Looking at the file, I see that there are lots of variants — 15 on my computer. My fix was for the first on the list, and you must have one of the others installed. But it turns out that you don't need to edit anything. The item you found is a driver for a German QWERTY keyboard, which I didn't know existed. Run the keyboard configuration tool. Delete the German driver you have. Then add a German keyboard, selecting QWERTY from the variants offered. That will sort it out.
Last edited by DavidMcCann; 08-24-2014 at 10:54 AM.
|
|
|
All times are GMT -5. The time now is 12:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|