2

I'm began to work on ubuntu (and arch) with i3wm, I usually use the US International layout on Windows. I set the keyboard of the default Ubuntu to US(International with dead keys) which works fine, but when I launch ubuntu under i3WM, the keyboard does not appear to have changed...

How can I set the keyboard to US(International with dead keys) with Right-Alt as deadkey ? should I modify anything in the .xinit ?

thanks for your help !

6
setxkbmap -layout us -variant intl

Just picking up the comment by quixotic, which worked for me, and writing this up as an answer like Elder Geek suggested :)

3
  • Cool, what if I need accents in the other direction? I mean "è" instead of "é". So the Italian accents style. Which variant I should use?
    – Kill KRT
    Jul 30 '19 at 22:17
  • Nevermind... I got it... Since all accents key are now dead keys, I can use them to decide which kind of accented vocals I want just typing proper accent key before the vocal! Cool!
    – Kill KRT
    Jul 30 '19 at 22:24
  • Tried to set my i3 keyboard using us-intl since it is what shows up under localectl list-x11-keymap-variants| grep us . I'm glad I found this answer, using intl worked flawlessly. Aug 20 '19 at 16:16
0

It needed a reboot, probably because it is a virtual machine.

3
  • 2
    you can change keyboard layouts dynamically with the setxkbmap command. setxkbmap -layout us -variant intl should do the trick.
    – quixotic
    Oct 10 '17 at 15:43
  • 1
    @quixotic why not write that up as an answer. Currently it would be the best one here.
    – Elder Geek
    Oct 11 '17 at 0:36
  • @ElderGeek time constraints. feel free to base your own answer on it, if you like.
    – quixotic
    Oct 16 '17 at 20:58

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.