Key remapping with modifier keys

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
I have a US keyboard by I'm using a British keyboard layout.
The US keyboard doesn't physically have the keys (backslash) and | (vertical bar).
I'd like to remap them to Alt # and Alt ~ respectively.
How can I achieve this?
I'm running Ubuntu Artful, which uses xkb.
keyboard keyboard-layout
add a comment |Â
up vote
1
down vote
favorite
I have a US keyboard by I'm using a British keyboard layout.
The US keyboard doesn't physically have the keys (backslash) and | (vertical bar).
I'd like to remap them to Alt # and Alt ~ respectively.
How can I achieve this?
I'm running Ubuntu Artful, which uses xkb.
keyboard keyboard-layout
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a US keyboard by I'm using a British keyboard layout.
The US keyboard doesn't physically have the keys (backslash) and | (vertical bar).
I'd like to remap them to Alt # and Alt ~ respectively.
How can I achieve this?
I'm running Ubuntu Artful, which uses xkb.
keyboard keyboard-layout
I have a US keyboard by I'm using a British keyboard layout.
The US keyboard doesn't physically have the keys (backslash) and | (vertical bar).
I'd like to remap them to Alt # and Alt ~ respectively.
How can I achieve this?
I'm running Ubuntu Artful, which uses xkb.
keyboard keyboard-layout
edited May 5 at 15:42
asked May 4 at 14:32
kYuZz
1063
1063
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
It's not crystal clear what you mean, but possibly you want to edit the /usr/share/X11/xkb/symbols/gb file and change the line
key <BKSL> [numbersign, asciitilde, dead_grave, dead_breve ] ;
to
key <BKSL> [numbersign, asciitilde, backslash, bar ] ;
Result:
Right Alt + # =>
Right Alt + Shift + # => |
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
It's not crystal clear what you mean, but possibly you want to edit the /usr/share/X11/xkb/symbols/gb file and change the line
key <BKSL> [numbersign, asciitilde, dead_grave, dead_breve ] ;
to
key <BKSL> [numbersign, asciitilde, backslash, bar ] ;
Result:
Right Alt + # =>
Right Alt + Shift + # => |
add a comment |Â
up vote
1
down vote
It's not crystal clear what you mean, but possibly you want to edit the /usr/share/X11/xkb/symbols/gb file and change the line
key <BKSL> [numbersign, asciitilde, dead_grave, dead_breve ] ;
to
key <BKSL> [numbersign, asciitilde, backslash, bar ] ;
Result:
Right Alt + # =>
Right Alt + Shift + # => |
add a comment |Â
up vote
1
down vote
up vote
1
down vote
It's not crystal clear what you mean, but possibly you want to edit the /usr/share/X11/xkb/symbols/gb file and change the line
key <BKSL> [numbersign, asciitilde, dead_grave, dead_breve ] ;
to
key <BKSL> [numbersign, asciitilde, backslash, bar ] ;
Result:
Right Alt + # =>
Right Alt + Shift + # => |
It's not crystal clear what you mean, but possibly you want to edit the /usr/share/X11/xkb/symbols/gb file and change the line
key <BKSL> [numbersign, asciitilde, dead_grave, dead_breve ] ;
to
key <BKSL> [numbersign, asciitilde, backslash, bar ] ;
Result:
Right Alt + # =>
Right Alt + Shift + # => |
answered May 4 at 15:26
Gunnar Hjalmarsson
17.7k23059
17.7k23059
add a comment |Â
add a comment |Â
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%2f1032014%2fkey-remapping-with-modifier-keys%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