How to switch keys symbols on holding ALT?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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)
keyboard shortcut-keys keyboard-layout configuration
add a comment |Â
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)
keyboard shortcut-keys keyboard-layout configuration
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
add a comment |Â
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)
keyboard shortcut-keys keyboard-layout configuration
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)
keyboard shortcut-keys keyboard-layout configuration
edited Jun 2 at 21:07
![](https://i.stack.imgur.com/lbplL.jpg?s=32&g=1)
![](https://i.stack.imgur.com/lbplL.jpg?s=32&g=1)
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
add a comment |Â
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
add a comment |Â
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.
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 lineinclude "level3(ralt_switch)"
too.
â Gunnar Hjalmarsson
Jun 30 at 0:22
 |Â
show 3 more comments
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.
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 lineinclude "level3(ralt_switch)"
too.
â Gunnar Hjalmarsson
Jun 30 at 0:22
 |Â
show 3 more comments
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.
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 lineinclude "level3(ralt_switch)"
too.
â Gunnar Hjalmarsson
Jun 30 at 0:22
 |Â
show 3 more comments
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.
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.
answered Jun 2 at 20:00
![](https://i.stack.imgur.com/aZsF6.jpg?s=32&g=1)
![](https://i.stack.imgur.com/aZsF6.jpg?s=32&g=1)
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 lineinclude "level3(ralt_switch)"
too.
â Gunnar Hjalmarsson
Jun 30 at 0:22
 |Â
show 3 more comments
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 lineinclude "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
 |Â
show 3 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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