Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm french and I'm used to an AZERTY layout. Nevertheless I find painfull the fact to push shift to get numbers, and want to keep an AZERTY layout but with the numbers in QWERTY style.

Is it possible ? Such layout exists on Mac (a layout called french numeric) but not seem to exist in ubuntu (or with a strange name).

share|improve this question
up vote 2 down vote accepted

You'll have to modify the fr file in /usr/share/X11/xkb/symbols.

Make a copy of the file somewhere. Modify it as necessary. Make a backup of the original file in the original folder. Overwrite the file with the modified version (you'll need administrator rights: gksu nautilus in terminal). BE CAREFUL. YOU COULD BREAK THINGS! Restart X server or reboot.

P.S. If you're using Ubuntu 12.04, you'll have problems with the modified layout (I do) but there is a temporary workaround. In a terminal type:

sudo setxkbmap fr

I'm not using the standard french layout but the one called french alternative and french alternative latin 9 only. I have to use:

sudo setxkbmap "fr(oss)","fr(oss_latin9)"

Modify the command accordingly.

share|improve this answer
Worked like a charm without the setxbmap fr. Even my Caps lock switched with a 3rd Ctrl works (got trouble with my 12.04 update with this). – Jooj May 16 '12 at 3:43
Is there a way to easily switch between mu own layout and the original one ? I'd like to switch between them thanks to the system tray (as I can for a qwerty/azerty switch). – Jooj May 16 '12 at 3:56
If you modified the basic French keyboard, then you cannot switch to it because it doesn't exist any longer. However, there are many different French keyboards in the list. Check if there's another one which still has the original configuration. If not you might copy and paste the lines in the original backup file for the numbers row in one of the other keyboards, that is further down in the SAME file, for example in French - Alternative. – To Do May 17 '12 at 7:41
If this answer helped you please tick the up arrow for the benefit of others. – To Do May 17 '12 at 7:42
Great, thanks ! – Jooj May 17 '12 at 9:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.