LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-12-2018, 02:11 AM   #1
folatt
LQ Newbie
 
Registered: Dec 2016
Posts: 11
Blog Entries: 2

Rep: Reputation: Disabled
Attempting to create a custom keyboard layout.


https://www.linuxquestions.org/quest...ayout-1-37728/

Last edited by folatt; 04-24-2018 at 03:11 PM.
 
Old 04-12-2018, 02:31 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,875

Rep: Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890
probably xmodmap and/or xkeymap are the solution.
 
Old 04-12-2018, 03:29 AM   #3
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Outside, most of the time.
Posts: 923
Blog Entries: 26

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Quote:
Originally Posted by pan64 View Post
probably xmodmap and/or xkeymap are the solution.
Right.

However, when you alter a lot of the default key-maps for xmodmap, i.e. when the xmodmap.[country-code] becomes somewhat “huge”, it takes time to load it. If you need to test your new settings or for other reasons want to call xmodmap on such a configuration, it may block your input for a while. Used on system start-up, it may take a little longer than with the standard-settings.

xmodmap is great, however, when you want to alter or add only a few keys. One mapping-file that I use is just this:
Code:
! Ω and @
keycode  24 = q Q q Q at Greek_OMEGA at
! œ and Œ 
keycode  32 = o O o O oe OE oe
! λ and Λ (greek_lambda)
keycode  46 = l L l L U03BB U039B U03BB  
! δ and Δ (greek_delta)
keycode  40 = d D d D U03B4 U0394 U03B4
! ω (greek_omega)
keycode  25 = w W w W U03C9
! ✅ and ✔
keycode  44 = j J j J U2705 U2714
I do not know, when the file becomes too big to be loaded swiftly nor what else can have an influence.

Ω

Last edited by Michael Uplawski; 04-12-2018 at 03:31 AM. Reason: ... cosmetics. Vanity.
 
Old 04-12-2018, 12:19 PM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Xubuntu
Posts: 5,579

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
Xmodmap is ok for altering the odd key, but it doesn't always play well with the Xorg system.

If you use the command
setxkbmap -print
you can see how your keyboard driver is created. In mine, the output
xkb_symbols { include "pc+gb+gr:2+astro:3+inet(evdev)+group(shift_caps_toggle)+terminate(ctrl_alt_bksp)" };
shows that it's using 7 files from /usr/share/X11/xkb/symbols. The ones that relate to the alphanumeric parts of the keyboard are gb, gr, and astro.

You will presumably have "us" instead. Your placement of shows how things work:
key <AC03> { [ e, E, eacute, Eacute ] };
shows that the third key (03) in the third alphanumeric row (AC) gives "e E " with Shift, ThirdLevelShift, and both together. So, it's quite easy to re-write these things. For example, my gb gives phonetic symbols on levels 3 and 4, while astro gives astrological ones.

Don't forget that you can also get diacritics with a Compose key (I use the Windows menu key for that). This can be customised with a ~/.XCompose file. Thus mine includes
<Multi_key> <t> <l> : "ƛ" U019B # Latin small LAMDA with stroke
<Multi_key> <comma> <s> : "ș" U0219 # Latin small S with comma below

As for the flag, you can customise that
https://winaero.com/blog/custom-flag...yboard-layout/
If you create your own flags, you can convert png or jpg to svg with Image Magic's convert or mogrify commands.
 
Old 04-13-2018, 01:44 AM   #5
folatt
LQ Newbie
 
Registered: Dec 2016
Posts: 11

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Thanks guys!

It looks like I'm going to have to talk to this Steffen Bruentjen guy, see if I can collaborate a bit with him with our somewhat similar goals.

I will keep things updated.
 
Old 04-21-2018, 06:41 AM   #6
folatt
LQ Newbie
 
Registered: Dec 2016
Posts: 11

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
https://www.linuxquestions.org/quest...ayout-1-37727/

Last edited by folatt; 04-24-2018 at 03:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install a custom keyboard layout ventsyv Linux - Desktop 5 08-29-2014 11:31 AM
Custom Keyboard Layout? Shammyhealz Linux - Newbie 3 10-05-2012 08:50 AM
Adding a custom keyboard layout in Kubuntu dotancohen Linux - General 2 03-01-2011 02:20 PM
Change character in custom keyboard layout jdtiede Linux - Software 1 03-10-2010 04:48 AM
[SOLVED] Help with custom keyboard layout lucmove Linux - Hardware 7 09-07-2009 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration