Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I've been able to change the keyboard layout/mapping when the X Window System is running using ~/.Xmodmap
(and I suppose you could also do it through the X protocol directly, eg. using libxcb as a wrapper around X protocol calls).
I've been able to do the same (somewhat) on the console/tty (ie. when X is not running) using loadkeys
.
Is there a way to customize the keyboard layout similarly, but from a single source, in such a way that it affects both X and the console, ie. in a way that is "X-and-console agnostic"?
(The only way I can think of is by writing a "keyboard driver" that talks to the kernel's input interface, evdev
, and sends the input you want (through uinput
?), or something, but I don't know if this even makes sense, or if there's an easier way.)
keyboard keyboard-layout
add a comment |Â
up vote
0
down vote
favorite
I've been able to change the keyboard layout/mapping when the X Window System is running using ~/.Xmodmap
(and I suppose you could also do it through the X protocol directly, eg. using libxcb as a wrapper around X protocol calls).
I've been able to do the same (somewhat) on the console/tty (ie. when X is not running) using loadkeys
.
Is there a way to customize the keyboard layout similarly, but from a single source, in such a way that it affects both X and the console, ie. in a way that is "X-and-console agnostic"?
(The only way I can think of is by writing a "keyboard driver" that talks to the kernel's input interface, evdev
, and sends the input you want (through uinput
?), or something, but I don't know if this even makes sense, or if there's an easier way.)
keyboard keyboard-layout
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've been able to change the keyboard layout/mapping when the X Window System is running using ~/.Xmodmap
(and I suppose you could also do it through the X protocol directly, eg. using libxcb as a wrapper around X protocol calls).
I've been able to do the same (somewhat) on the console/tty (ie. when X is not running) using loadkeys
.
Is there a way to customize the keyboard layout similarly, but from a single source, in such a way that it affects both X and the console, ie. in a way that is "X-and-console agnostic"?
(The only way I can think of is by writing a "keyboard driver" that talks to the kernel's input interface, evdev
, and sends the input you want (through uinput
?), or something, but I don't know if this even makes sense, or if there's an easier way.)
keyboard keyboard-layout
I've been able to change the keyboard layout/mapping when the X Window System is running using ~/.Xmodmap
(and I suppose you could also do it through the X protocol directly, eg. using libxcb as a wrapper around X protocol calls).
I've been able to do the same (somewhat) on the console/tty (ie. when X is not running) using loadkeys
.
Is there a way to customize the keyboard layout similarly, but from a single source, in such a way that it affects both X and the console, ie. in a way that is "X-and-console agnostic"?
(The only way I can think of is by writing a "keyboard driver" that talks to the kernel's input interface, evdev
, and sends the input you want (through uinput
?), or something, but I don't know if this even makes sense, or if there's an easier way.)
keyboard keyboard-layout
keyboard keyboard-layout
asked 8 mins ago
étale-cohomology
17025
17025
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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%2funix.stackexchange.com%2fquestions%2f479673%2fchanging-the-keyboard-layout-mapping-on-both-the-console-tty-and-x-in-an-x-con%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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');
);
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');
);
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