The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

using dvorak in i3

asked 2014-03-17 21:44:06 +0000

EnergyMatter gravatar image

I want to use the dvorak layout in i3. I tried installing xkb-switch but it doesn't have Dvorak listed. I was wondering if there was any way to do it.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-03-28 13:48:37 +0000

Tahtisilma gravatar image

I am using Debian so I give answer that works on that distribution. You should be able to find similar commands on your distribution.

I am using two keyboard layouts: dvorak for programmers with switched escape key with caps lock with polish letters and polish layout. I wanted layout to be changed both in terminal and X applications. I needed to edit my /etc/default/keyboard file to look like:

XKBLAYOUT="pl,pl"
XKBVARIANT="dvp,basic"
XKBOPTIONS="caps:swapescape,group:sclk_toggle"

The equivalent command would be:

setxkbmap -layout "pl,pl" -variant "dvp," -option "caps:swapescape,grp:sclk_toggle"

But that will change layout only under X applications. In your case you may want to change pl to us and dvp to dvorak so for example command would be:

setxkbmap -layout "us" -variant "dvorak"

Consult man keyboard for description of the config file and man xkeyboard-config for possible layouts options.

To have nice icon for switching layouts I use fbxkb.

edit flag offensive delete link more

Comments

When I execute: setxkbmap the layout is changed, however when I restart i3wm, the layout is back to qwerty... how to make the configuration change permanent?

elviejo79 gravatar imageelviejo79 ( 2015-03-22 17:31:57 +0000 )edit

@elviejo79 Modify /etc/default/keyboard or run sudo dpkg-reconfigure keyboard-configuration . That will work on Debian based systems like Ubuntu etc.

Tahtisilma gravatar imageTahtisilma ( 2015-03-27 12:26:58 +0000 )edit
0

answered 2014-03-19 15:32:12 +0000

updated 2014-03-20 07:23:49 +0000

Adaephon gravatar image

I use setxkbmap dvorak

edit flag offensive delete link more
0

answered 2014-03-18 23:33:58 +0000

joepd gravatar image

Yes, there is a way to do it: Xorg has had support for funny keyboard layouts since the thirties or the sixties, I cannot remember. Different distrubutions have their own convenience scripts to configure that kind of stuff. Do a locate dvorak on your machine, and check the easiest way to adjust the Variants parameter of your Xorg configuration. Good luck!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-17 21:44:06 +0000

Seen: 882 times

Last updated: Mar 28 '14