Based on this answer I have verified that I have the "US, international with dead keys" keyboard layout available:
$ cat /usr/share/X11/xkb/rules/base.lst | grep US,\ international\ with\
intl us: English (US, international with dead keys)
Then, based on this answer, I try to change the keyboard layout from the command line. But setxkbmap -v intl
fails:
$ setxkbmap -v intl
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes: evdev+aliases(qwerty)
types: complete
compat: complete
symbols: pc+intl+inet(evdev)
geometry: pc(pc105)
Error loading new keyboard description
System is:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
What am I doing wrong? I am on a desktop system, using i3wm.
update
Ok, so apparently the following succeeds:
$ setxkbmap -model pc105 -layout us -variant intl
$ echo $?
0