View previous topic :: View next topic |
Author |
Message |
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Thu Jun 12, 2014 4:34 am Post subject: Globally Enable Dvorak |
|
|
How do I set the keymapping to Dvorak across the entire system? I'm using Gnome 3. |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Thu Jun 12, 2014 4:41 am Post subject: |
|
|
I can't say for gnome but for me I just modify /etc/conf.d/keymaps:
|
|
Back to top |
|
|
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Thu Jun 12, 2014 6:14 am Post subject: |
|
|
I'm on systemd. |
|
Back to top |
|
|
v_andal Guru
Joined: 26 Aug 2008 Posts: 541 Location: Germany
|
Posted: Thu Jun 12, 2014 6:38 am Post subject: |
|
|
Well. If you are using Gnome 3, then I guess you need to configure X server to use Dvorak as default layout variant. For that you create (or edit) Xorg configuration file. Everything depends on you current setup.
If you don't have and /etc/X11/xorg.conf and nothing in /etc/X11/xorg.conf.d then you may create file /etc/X11/xorg.conf.d/keyboard.conf with following content
Quote: |
Section "InputClass"
Identifier "My Keyboard"
Driver "evdev"
MatchIsKeyboard "On"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbVariant" "dvorak"
Option "AutoServerLayout" "on"
Option "SendCoreEvents" "on"
EndSection
|
This assumes that your default layout is for US English and you don't use any other layouts. This also assumes, that your Xorg server correctly recognizes your keyboard. |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Thu Jun 12, 2014 10:09 am Post subject: |
|
|
This is my X config for dvorak: Code: | ~» cat /etc/X11/xorg.conf.d/11-keyboard.conf
Section "InputClass"
Identifier "keyboard-all"
Option "XkbLayout" "dvorak,us"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
Option "XkbOptions" "grp:alt_shift_toggle"
MatchIsKeyboard "on"
EndSection | If you are using any DE (gnome3 in your case), then it is highly likely that the DE will change the keymap when you login. You should configure your gnome to make dvorak the default.
I am using openrc, so the following is also set in my rc file for setting the keyboard to dvorak in console Code: | ~» grep dvorak /etc/conf.d/keymaps
keymap="dvorak" | I don't know how to set this for systemd. But if you want to switch to dvorak temporarily in the console, then you can type this:or put this in your ${SHELL}rc as a temporary hack Code: | if [ $TERM = "linux" ]; then
loadkeys dvorak
fi |
_________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Thu Jun 12, 2014 3:26 pm Post subject: |
|
|
Back when I was using gnome (some years back) the X config keymap change listed by ppurka worked for me. I don't know if it's still the same, but traditionally speaking that should do it for any X installation. |
|
Back to top |
|
|
|