Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Globally Enable Dvorak
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Thu Jun 12, 2014 4:34 am    Post subject: Globally Enable Dvorak Reply with quote

How do I set the keymapping to Dvorak across the entire system? I'm using Gnome 3.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Thu Jun 12, 2014 4:41 am    Post subject: Reply with quote

I can't say for gnome but for me I just modify /etc/conf.d/keymaps:
Code:

keymap="dvorak"
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Thu Jun 12, 2014 6:14 am    Post subject: Reply with quote

I'm on systemd.
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Thu Jun 12, 2014 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Jun 12, 2014 10:09 am    Post subject: Reply with quote

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:
Code:
loadkeys dvorak
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
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Thu Jun 12, 2014 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum