How to switch keys symbols on holding ALT?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I wanna emulate numpad on letters uiojklm,.



I edited french layout in /usr/share/X11/xkb/symbols (see image below).

But I have to switch layout in order to use what I've done there.

I would like if for certain layout I could just hold Alt.



There is two options how I would like to switch to numbers:

-change to certain layout while holding Alt;

-keys print different symbols while holding Alt;

(or after activating Caps Lock)



enter image description here







share|improve this question





















  • You need to be much more specific about what you need. Which keyboard layout are you using normally? Which symbols do you miss? Which file did you edit and exactly what changes did you make?
    – Gunnar Hjalmarsson
    Jun 2 at 18:41










  • @Gunnar Hjalmarsson updated
    – R S
    Jun 2 at 18:57










  • Ok. Which layout are you normally using? To achieve what you want it's that layout you need to edit, i.e. you need to change the third symbol of respective key to a number. (OTOH, personally I would probably have created a custom layout for the purpose, and switched to it when inputting numbers.)
    – Gunnar Hjalmarsson
    Jun 2 at 19:12










  • @Gunnar Hjalmarsson usually English(US), could you tell more about 3rd symbol...
    – R S
    Jun 2 at 19:29










  • Please see the answer I posted.
    – Gunnar Hjalmarsson
    Jun 2 at 20:00














up vote
0
down vote

favorite












I wanna emulate numpad on letters uiojklm,.



I edited french layout in /usr/share/X11/xkb/symbols (see image below).

But I have to switch layout in order to use what I've done there.

I would like if for certain layout I could just hold Alt.



There is two options how I would like to switch to numbers:

-change to certain layout while holding Alt;

-keys print different symbols while holding Alt;

(or after activating Caps Lock)



enter image description here







share|improve this question





















  • You need to be much more specific about what you need. Which keyboard layout are you using normally? Which symbols do you miss? Which file did you edit and exactly what changes did you make?
    – Gunnar Hjalmarsson
    Jun 2 at 18:41










  • @Gunnar Hjalmarsson updated
    – R S
    Jun 2 at 18:57










  • Ok. Which layout are you normally using? To achieve what you want it's that layout you need to edit, i.e. you need to change the third symbol of respective key to a number. (OTOH, personally I would probably have created a custom layout for the purpose, and switched to it when inputting numbers.)
    – Gunnar Hjalmarsson
    Jun 2 at 19:12










  • @Gunnar Hjalmarsson usually English(US), could you tell more about 3rd symbol...
    – R S
    Jun 2 at 19:29










  • Please see the answer I posted.
    – Gunnar Hjalmarsson
    Jun 2 at 20:00












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I wanna emulate numpad on letters uiojklm,.



I edited french layout in /usr/share/X11/xkb/symbols (see image below).

But I have to switch layout in order to use what I've done there.

I would like if for certain layout I could just hold Alt.



There is two options how I would like to switch to numbers:

-change to certain layout while holding Alt;

-keys print different symbols while holding Alt;

(or after activating Caps Lock)



enter image description here







share|improve this question













I wanna emulate numpad on letters uiojklm,.



I edited french layout in /usr/share/X11/xkb/symbols (see image below).

But I have to switch layout in order to use what I've done there.

I would like if for certain layout I could just hold Alt.



There is two options how I would like to switch to numbers:

-change to certain layout while holding Alt;

-keys print different symbols while holding Alt;

(or after activating Caps Lock)



enter image description here









share|improve this question












share|improve this question




share|improve this question








edited Jun 2 at 21:07









Graham

1,94261324




1,94261324









asked Jun 2 at 18:29









R S

7251129




7251129











  • You need to be much more specific about what you need. Which keyboard layout are you using normally? Which symbols do you miss? Which file did you edit and exactly what changes did you make?
    – Gunnar Hjalmarsson
    Jun 2 at 18:41










  • @Gunnar Hjalmarsson updated
    – R S
    Jun 2 at 18:57










  • Ok. Which layout are you normally using? To achieve what you want it's that layout you need to edit, i.e. you need to change the third symbol of respective key to a number. (OTOH, personally I would probably have created a custom layout for the purpose, and switched to it when inputting numbers.)
    – Gunnar Hjalmarsson
    Jun 2 at 19:12










  • @Gunnar Hjalmarsson usually English(US), could you tell more about 3rd symbol...
    – R S
    Jun 2 at 19:29










  • Please see the answer I posted.
    – Gunnar Hjalmarsson
    Jun 2 at 20:00
















  • You need to be much more specific about what you need. Which keyboard layout are you using normally? Which symbols do you miss? Which file did you edit and exactly what changes did you make?
    – Gunnar Hjalmarsson
    Jun 2 at 18:41










  • @Gunnar Hjalmarsson updated
    – R S
    Jun 2 at 18:57










  • Ok. Which layout are you normally using? To achieve what you want it's that layout you need to edit, i.e. you need to change the third symbol of respective key to a number. (OTOH, personally I would probably have created a custom layout for the purpose, and switched to it when inputting numbers.)
    – Gunnar Hjalmarsson
    Jun 2 at 19:12










  • @Gunnar Hjalmarsson usually English(US), could you tell more about 3rd symbol...
    – R S
    Jun 2 at 19:29










  • Please see the answer I posted.
    – Gunnar Hjalmarsson
    Jun 2 at 20:00















You need to be much more specific about what you need. Which keyboard layout are you using normally? Which symbols do you miss? Which file did you edit and exactly what changes did you make?
– Gunnar Hjalmarsson
Jun 2 at 18:41




You need to be much more specific about what you need. Which keyboard layout are you using normally? Which symbols do you miss? Which file did you edit and exactly what changes did you make?
– Gunnar Hjalmarsson
Jun 2 at 18:41












@Gunnar Hjalmarsson updated
– R S
Jun 2 at 18:57




@Gunnar Hjalmarsson updated
– R S
Jun 2 at 18:57












Ok. Which layout are you normally using? To achieve what you want it's that layout you need to edit, i.e. you need to change the third symbol of respective key to a number. (OTOH, personally I would probably have created a custom layout for the purpose, and switched to it when inputting numbers.)
– Gunnar Hjalmarsson
Jun 2 at 19:12




Ok. Which layout are you normally using? To achieve what you want it's that layout you need to edit, i.e. you need to change the third symbol of respective key to a number. (OTOH, personally I would probably have created a custom layout for the purpose, and switched to it when inputting numbers.)
– Gunnar Hjalmarsson
Jun 2 at 19:12












@Gunnar Hjalmarsson usually English(US), could you tell more about 3rd symbol...
– R S
Jun 2 at 19:29




@Gunnar Hjalmarsson usually English(US), could you tell more about 3rd symbol...
– R S
Jun 2 at 19:29












Please see the answer I posted.
– Gunnar Hjalmarsson
Jun 2 at 20:00




Please see the answer I posted.
– Gunnar Hjalmarsson
Jun 2 at 20:00










1 Answer
1






active

oldest

votes

















up vote
1
down vote













I edited the English (US) keyboard layout like this:



$ diff /usr/share/X11/xkb/symbols/us.orig /usr/share/X11/xkb/symbols/us
26,28c26,28
< key <AD07> [ u, U ] ;
< key <AD08> [ i, I ] ;
< key <AD09> [ o, O ] ;
---
> key <AD07> [ u, U, 7 ] ;
> key <AD08> [ i, I, 8 ] ;
> key <AD09> [ o, O, 9 ] ;
39,41c39,41
< key <AC07> [ j, J ] ;
< key <AC08> [ k, K ] ;
< key <AC09> [ l, L ] ;
---
> key <AC07> [ j, J, 4 ] ;
> key <AC08> [ k, K, 5 ] ;
> key <AC09> [ l, L, 6 ] ;
51,53c51,53
< key <AB07> [ m, M ] ;
< key <AB08> [ comma, less ] ;
< key <AB09> [ period, greater ] ;
---
> key <AB07> [ m, M, 1 ] ;
> key <AB08> [ comma, less, 2 ] ;
> key <AB09> [ period, greater, 3 ] ;
56a57,58
>
> include "level3(ralt_switch)"


That way I can type numbers like this:



Right Alt+U -> 7



Right Alt+K -> 5



etc.



The line



include "level3(ralt_switch)"


enables the third level mechanism; in this case Right Alt which is default for those keyboard layouts which make use of third and fourth level symbols, but it can be changed.






share|improve this answer





















  • Could you take a look, please: askubuntu.com/q/1050584/393875
    – R S
    Jun 29 at 0:59










  • I holding ralt but nothing happens. Tried to reboot (should I reboot or log out ?).
    – R S
    Jun 29 at 17:19










  • @RS: You may have made a typo... I'd suggest that you edit your own question and show us what exactly your modified layout looks like. (Rebooting should not be necessary.)
    – Gunnar Hjalmarsson
    Jun 29 at 22:33











  • Here is my us layout, I edited only 1 place - line 39. drive.google.com/open?id=1R6VrOB0m3fxk8lE_RMXMCOsSvvCAsJVZ
    – R S
    Jun 30 at 0:13











  • @RS: You need to add the line include "level3(ralt_switch)" too.
    – Gunnar Hjalmarsson
    Jun 30 at 0:22










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043007%2fhow-to-switch-keys-symbols-on-holding-alt%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













I edited the English (US) keyboard layout like this:



$ diff /usr/share/X11/xkb/symbols/us.orig /usr/share/X11/xkb/symbols/us
26,28c26,28
< key <AD07> [ u, U ] ;
< key <AD08> [ i, I ] ;
< key <AD09> [ o, O ] ;
---
> key <AD07> [ u, U, 7 ] ;
> key <AD08> [ i, I, 8 ] ;
> key <AD09> [ o, O, 9 ] ;
39,41c39,41
< key <AC07> [ j, J ] ;
< key <AC08> [ k, K ] ;
< key <AC09> [ l, L ] ;
---
> key <AC07> [ j, J, 4 ] ;
> key <AC08> [ k, K, 5 ] ;
> key <AC09> [ l, L, 6 ] ;
51,53c51,53
< key <AB07> [ m, M ] ;
< key <AB08> [ comma, less ] ;
< key <AB09> [ period, greater ] ;
---
> key <AB07> [ m, M, 1 ] ;
> key <AB08> [ comma, less, 2 ] ;
> key <AB09> [ period, greater, 3 ] ;
56a57,58
>
> include "level3(ralt_switch)"


That way I can type numbers like this:



Right Alt+U -> 7



Right Alt+K -> 5



etc.



The line



include "level3(ralt_switch)"


enables the third level mechanism; in this case Right Alt which is default for those keyboard layouts which make use of third and fourth level symbols, but it can be changed.






share|improve this answer





















  • Could you take a look, please: askubuntu.com/q/1050584/393875
    – R S
    Jun 29 at 0:59










  • I holding ralt but nothing happens. Tried to reboot (should I reboot or log out ?).
    – R S
    Jun 29 at 17:19










  • @RS: You may have made a typo... I'd suggest that you edit your own question and show us what exactly your modified layout looks like. (Rebooting should not be necessary.)
    – Gunnar Hjalmarsson
    Jun 29 at 22:33











  • Here is my us layout, I edited only 1 place - line 39. drive.google.com/open?id=1R6VrOB0m3fxk8lE_RMXMCOsSvvCAsJVZ
    – R S
    Jun 30 at 0:13











  • @RS: You need to add the line include "level3(ralt_switch)" too.
    – Gunnar Hjalmarsson
    Jun 30 at 0:22














up vote
1
down vote













I edited the English (US) keyboard layout like this:



$ diff /usr/share/X11/xkb/symbols/us.orig /usr/share/X11/xkb/symbols/us
26,28c26,28
< key <AD07> [ u, U ] ;
< key <AD08> [ i, I ] ;
< key <AD09> [ o, O ] ;
---
> key <AD07> [ u, U, 7 ] ;
> key <AD08> [ i, I, 8 ] ;
> key <AD09> [ o, O, 9 ] ;
39,41c39,41
< key <AC07> [ j, J ] ;
< key <AC08> [ k, K ] ;
< key <AC09> [ l, L ] ;
---
> key <AC07> [ j, J, 4 ] ;
> key <AC08> [ k, K, 5 ] ;
> key <AC09> [ l, L, 6 ] ;
51,53c51,53
< key <AB07> [ m, M ] ;
< key <AB08> [ comma, less ] ;
< key <AB09> [ period, greater ] ;
---
> key <AB07> [ m, M, 1 ] ;
> key <AB08> [ comma, less, 2 ] ;
> key <AB09> [ period, greater, 3 ] ;
56a57,58
>
> include "level3(ralt_switch)"


That way I can type numbers like this:



Right Alt+U -> 7



Right Alt+K -> 5



etc.



The line



include "level3(ralt_switch)"


enables the third level mechanism; in this case Right Alt which is default for those keyboard layouts which make use of third and fourth level symbols, but it can be changed.






share|improve this answer





















  • Could you take a look, please: askubuntu.com/q/1050584/393875
    – R S
    Jun 29 at 0:59










  • I holding ralt but nothing happens. Tried to reboot (should I reboot or log out ?).
    – R S
    Jun 29 at 17:19










  • @RS: You may have made a typo... I'd suggest that you edit your own question and show us what exactly your modified layout looks like. (Rebooting should not be necessary.)
    – Gunnar Hjalmarsson
    Jun 29 at 22:33











  • Here is my us layout, I edited only 1 place - line 39. drive.google.com/open?id=1R6VrOB0m3fxk8lE_RMXMCOsSvvCAsJVZ
    – R S
    Jun 30 at 0:13











  • @RS: You need to add the line include "level3(ralt_switch)" too.
    – Gunnar Hjalmarsson
    Jun 30 at 0:22












up vote
1
down vote










up vote
1
down vote









I edited the English (US) keyboard layout like this:



$ diff /usr/share/X11/xkb/symbols/us.orig /usr/share/X11/xkb/symbols/us
26,28c26,28
< key <AD07> [ u, U ] ;
< key <AD08> [ i, I ] ;
< key <AD09> [ o, O ] ;
---
> key <AD07> [ u, U, 7 ] ;
> key <AD08> [ i, I, 8 ] ;
> key <AD09> [ o, O, 9 ] ;
39,41c39,41
< key <AC07> [ j, J ] ;
< key <AC08> [ k, K ] ;
< key <AC09> [ l, L ] ;
---
> key <AC07> [ j, J, 4 ] ;
> key <AC08> [ k, K, 5 ] ;
> key <AC09> [ l, L, 6 ] ;
51,53c51,53
< key <AB07> [ m, M ] ;
< key <AB08> [ comma, less ] ;
< key <AB09> [ period, greater ] ;
---
> key <AB07> [ m, M, 1 ] ;
> key <AB08> [ comma, less, 2 ] ;
> key <AB09> [ period, greater, 3 ] ;
56a57,58
>
> include "level3(ralt_switch)"


That way I can type numbers like this:



Right Alt+U -> 7



Right Alt+K -> 5



etc.



The line



include "level3(ralt_switch)"


enables the third level mechanism; in this case Right Alt which is default for those keyboard layouts which make use of third and fourth level symbols, but it can be changed.






share|improve this answer













I edited the English (US) keyboard layout like this:



$ diff /usr/share/X11/xkb/symbols/us.orig /usr/share/X11/xkb/symbols/us
26,28c26,28
< key <AD07> [ u, U ] ;
< key <AD08> [ i, I ] ;
< key <AD09> [ o, O ] ;
---
> key <AD07> [ u, U, 7 ] ;
> key <AD08> [ i, I, 8 ] ;
> key <AD09> [ o, O, 9 ] ;
39,41c39,41
< key <AC07> [ j, J ] ;
< key <AC08> [ k, K ] ;
< key <AC09> [ l, L ] ;
---
> key <AC07> [ j, J, 4 ] ;
> key <AC08> [ k, K, 5 ] ;
> key <AC09> [ l, L, 6 ] ;
51,53c51,53
< key <AB07> [ m, M ] ;
< key <AB08> [ comma, less ] ;
< key <AB09> [ period, greater ] ;
---
> key <AB07> [ m, M, 1 ] ;
> key <AB08> [ comma, less, 2 ] ;
> key <AB09> [ period, greater, 3 ] ;
56a57,58
>
> include "level3(ralt_switch)"


That way I can type numbers like this:



Right Alt+U -> 7



Right Alt+K -> 5



etc.



The line



include "level3(ralt_switch)"


enables the third level mechanism; in this case Right Alt which is default for those keyboard layouts which make use of third and fourth level symbols, but it can be changed.







share|improve this answer













share|improve this answer



share|improve this answer











answered Jun 2 at 20:00









Gunnar Hjalmarsson

17.6k23059




17.6k23059











  • Could you take a look, please: askubuntu.com/q/1050584/393875
    – R S
    Jun 29 at 0:59










  • I holding ralt but nothing happens. Tried to reboot (should I reboot or log out ?).
    – R S
    Jun 29 at 17:19










  • @RS: You may have made a typo... I'd suggest that you edit your own question and show us what exactly your modified layout looks like. (Rebooting should not be necessary.)
    – Gunnar Hjalmarsson
    Jun 29 at 22:33











  • Here is my us layout, I edited only 1 place - line 39. drive.google.com/open?id=1R6VrOB0m3fxk8lE_RMXMCOsSvvCAsJVZ
    – R S
    Jun 30 at 0:13











  • @RS: You need to add the line include "level3(ralt_switch)" too.
    – Gunnar Hjalmarsson
    Jun 30 at 0:22
















  • Could you take a look, please: askubuntu.com/q/1050584/393875
    – R S
    Jun 29 at 0:59










  • I holding ralt but nothing happens. Tried to reboot (should I reboot or log out ?).
    – R S
    Jun 29 at 17:19










  • @RS: You may have made a typo... I'd suggest that you edit your own question and show us what exactly your modified layout looks like. (Rebooting should not be necessary.)
    – Gunnar Hjalmarsson
    Jun 29 at 22:33











  • Here is my us layout, I edited only 1 place - line 39. drive.google.com/open?id=1R6VrOB0m3fxk8lE_RMXMCOsSvvCAsJVZ
    – R S
    Jun 30 at 0:13











  • @RS: You need to add the line include "level3(ralt_switch)" too.
    – Gunnar Hjalmarsson
    Jun 30 at 0:22















Could you take a look, please: askubuntu.com/q/1050584/393875
– R S
Jun 29 at 0:59




Could you take a look, please: askubuntu.com/q/1050584/393875
– R S
Jun 29 at 0:59












I holding ralt but nothing happens. Tried to reboot (should I reboot or log out ?).
– R S
Jun 29 at 17:19




I holding ralt but nothing happens. Tried to reboot (should I reboot or log out ?).
– R S
Jun 29 at 17:19












@RS: You may have made a typo... I'd suggest that you edit your own question and show us what exactly your modified layout looks like. (Rebooting should not be necessary.)
– Gunnar Hjalmarsson
Jun 29 at 22:33





@RS: You may have made a typo... I'd suggest that you edit your own question and show us what exactly your modified layout looks like. (Rebooting should not be necessary.)
– Gunnar Hjalmarsson
Jun 29 at 22:33













Here is my us layout, I edited only 1 place - line 39. drive.google.com/open?id=1R6VrOB0m3fxk8lE_RMXMCOsSvvCAsJVZ
– R S
Jun 30 at 0:13





Here is my us layout, I edited only 1 place - line 39. drive.google.com/open?id=1R6VrOB0m3fxk8lE_RMXMCOsSvvCAsJVZ
– R S
Jun 30 at 0:13













@RS: You need to add the line include "level3(ralt_switch)" too.
– Gunnar Hjalmarsson
Jun 30 at 0:22




@RS: You need to add the line include "level3(ralt_switch)" too.
– Gunnar Hjalmarsson
Jun 30 at 0:22












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043007%2fhow-to-switch-keys-symbols-on-holding-alt%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491