You are not logged in.

#1 2015-12-07 04:09:34

Bl4ckb0ne
Member
Registered: 2014-12-26
Posts: 70

Change layout of a special key

Hi,

I recently switched my keyboard layout from US to US international with deadkeys. It's awesome, everythings is going well, but one thing isn't fun.

I need to do AltGr + ' to have ' , but just ' is doing ´ . Same with Shift + " doing ¨ and AltGr + Shift + " for " .
It's really annoying for programming, and writing in generally.

I'm using Cinnamon, somebody knows how to change the layout of a certain key, or just this behaviour?

Thanks.

Offline

#2 2015-12-07 07:42:59

bibek22
Member
From: Nepal
Registered: 2015-09-10
Posts: 90

Re: Change layout of a special key

Bl4ckb0ne wrote:

I need to do AltGr + ' to have ' , but just ' is doing ´ . Same with Shift + " doing ¨ and AltGr + Shift + " for " .
Thanks.

Could you rephrase please. I'm afraid I don't follow.

Edit: Ok, nevermind. Those punctuation characters really got me. I'd suggest you look into loadkeys way.
I'd :
Use

sudo dumpkeys >>keyboard.map 

to output your current keyboard translation table into a file.
Modify the file as your liking. Read

man keymaps 

for the guide to syntax.
Use

loadkeys keyboard.map

to load the keyboard translation table from the file.

Last edited by bibek22 (2015-12-07 10:55:55)

Offline

#3 2015-12-07 20:59:24

Bl4ckb0ne
Member
Registered: 2014-12-26
Posts: 70

Re: Change layout of a special key

I have this for the AltGr key

keycode 100 = AltGr            AltGr            AltGr
control keycode 100 = AltGr                                             
shift   control keycode 100 = AltGr                                     
alt keycode 100 = AltGr                                                 
control alt keycode 100 = AltGr  

But it doesn't look like what I'm looking for.

Offline

#4 2015-12-08 02:13:12

bibek22
Member
From: Nepal
Registered: 2015-09-10
Posts: 90

Re: Change layout of a special key

You need to look at the entry for the specific character key which you want to map differently and not the modifier unless you want to change the modifier behaviour itself.
So, find the keycode of the key you're concerned with using

sudo showkey

and look the section for that keycode on the map.

Also you need to look at the "complete keycode definition" section of keymaps(5) to know what actual changes you're going to need.

Edit: Leave the AltGr keymap as is if you want the compose function which I think you do.

Last edited by bibek22 (2015-12-08 02:16:51)

Offline

Board footer

Powered by FluxBB