Glam Prestige Journal

Bright entertainment trends with youth appeal.

I've recently installed i3 on my Ubuntu Gnome (15.04) computer (using these instructions). i3 is working fine and I can select it in GDM when i log in. But the problem is that when I log into i3 my keyboard layout change to the US layout, which I don't use (not even on my gnome settings). I've tried adding the following to my .config/i3/config file:

# Set keyboard layout
#exec --no-startup-id "setxkbmap se dvorak"
#exec --no-startup-id ~/.script/keyboard.sh
#exec --no-startup-id "setxkbmap -layout se -variant dvorak"
exec_always --no-startup-id "/usr/bin/setxkbmap se dvorak"

All these with comments (#) have I tried but to no success.

And I've also tried adding a script to gnome-session-properties but that didn't work either. The script is below:

#!/bin/bash
setxkbmap se dvorak 

The script have the following ls output:

 -rwxrwxr-x 1 username username 34 dec 9 19:32 .scripts/keyboard.sh

The layout I want to be set when I log in is the swedish version of dvorak, svorak.

When I log into i3 i can type the line below into a terminal and everything works fine until i logout/reboot, but it's bothering me that I can't set this permanently.

setxkbmap se dvorak 

Edit (some additional information):

If I execute setxkbmap -query and setxkbmap -print after I've logged into i3 the following is shown:

rules: evdev
model: tm2030USB-102
layout: us
options: grp_led:scroll

and

xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete+ledscroll(group_lock)" }; xkb_symbols { include "pc+us+inet(evdev)" }; xkb_geometry { include "typematrix(tm2030USB-102)" };
};
7

1 Answer

I ran the command ps -aux after I logged in to see all the processes that ran after I logged in. By checking the output of ps -aux I saw that ibus ran after I logged in.

Apparently, GNOME installs ibus by default (source), and ibus was to blame for changing my keyboard layout.

To change the input layout for ibus, I ran the command ibus-setup and went to tab "Input Method" and added "Swedish - Swedish (Dvorak)" as my only input method. After logging out and in again I now use Svorak directly when I log in.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy