Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Is there an APP for creating a custom keyboard layout? (the easy way)
ANSWER: YES! Thank you to AwesomeMachine, it's XKeyCaps
I really do prefer a program, rather than the programmer's approach.
After extensive research, I have come up with a great new keyboard layout. There is nothing similar out there now. In addition to remapping letters, I'll also need to be able to map the accents for the languages most in use today (English, French, Germanic languages, Spanish)
I suppose if someone knew how to export/convert a Windows' Keyboard Layout to a file, and import that into Linux, that can work too (as the Sharpkeys is really easy to use) - or do it back and forth, should I create it under Linux first. But a user-friendly Linux app would really be ideal here, as I'm getting less and less technical as I age.
I presently use Debian-based Distros, but mainly Linux MINT. I may port it to Q4OS or Bodhi or AntiX or MX-17, which are other distros that am interested in and may use on my other laptops.
UPDATE: I have found this Online Keyboard Layout Editor but am still trying to figure it out.
Last edited by Timmi; 05-06-2018 at 11:03 AM.
Reason: update
The reason that Windows has an app is that the keyboard driver is precompiled. In Linux, it's compiled from a collection of sources after you've logged in, so you can just alter the files. It's much better to do that, as you can see what you're doing; also, as the special tool will not have many users, you can't be sure how well debugged it is.
There's a command to see what you've got:
Code:
$ setxkbmap -print
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete+caps(internal_nocancel)" };
xkb_compat { include "complete+ledscroll(group_lock)" };
xkb_symbols { include "pc+gb+gr:2+astro:3+inet(evdev)+group(shift_caps_toggle)+terminate(ctrl_alt_bksp)" };
xkb_geometry { include "pc(pc105)" };
};
The files that will concern you are those listed under "symbols", which live in /usr/share/X11/xkb/symbols/
If you look at what I've got,
"pc" deals with things that you probably won't want to change, like Shift and F1
"inet" deals with fancy buttons, like Play/Pause
"group" shows the options for switching between different drivers
That leaves my three drivers: gb, gr, and astro. You've probably got ca or us. These are the things that need some rewriting. Typical lines in a driver are
The keys are named by position, so <AE10> is the tenth key in the fifth (E) row up in the alphanumeric section. The values listed cover the basic key, the shifted version, the third level (AltGr), and the fourth level (Shift + AltGr). They can be indicated by the character (e.g. a), a character name (e.g. ampersand), or a code for exotica (e.g. U00B0).
The reason that Windows has an app is that the keyboard driver is precompiled. In Linux, it's compiled from a collection of sources after you've logged in
So what you are saying, is that after I create a custom keyboard layout, change the keys around, and use a secure password, I will be locked out of my Linux OS, because it won't load the keyboard layout before I log in, thus blocking me from knowing what to type in order to log in?
That doesn't sound very good.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.