You are not logged in.
HI,
Since yesterday I haven't been able to input accents with my spanish keyboard on certain applications (Sublime text, Ted) whereas in others it works perfectly fine (Firefox, LibreOffice, Google Chrome)
$ setxkbmap -print -verbose 10gives
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc105
layout: latam
variant: deadtilde
options: ctrl:swap_lalt_lctl
Trying to build keymap using the following components:
keycodes: evdev+aliases(qwerty)
types: complete
compat: complete
symbols: pc+latam(deadtilde)+inet(evdev)+ctrl(swap_lalt_lctl)
geometry: pc(pc105)
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+latam(deadtilde)+inet(evdev)+ctrl(swap_lalt_lctl)" };
xkb_geometry { include "pc(pc105)" };
};
$ localectl statusgives
System Locale: LANG=en_US.UTF-8
VC Keymap: la-latin1
X11 Layout: latam
X11 Model: pc105
X11 Variant: deadtilde
X11 Options: ctrl:swap_lalt_lctl
I set XIM as default input method for GTK as in Keyboard configuration in Xorg#Key combinations, wanting to avoid the uncomfortable unicode input metod set to Ctrl+u.
I wish to be able to press the accent key and a vowel to produce an accented character in Sublime text e.g.: ´+a -> á
Thanks!
Last edited by geno_whirl (2016-11-08 21:18:59)
"I serve...a higher authority..."
Offline
It works for me with a Belgian keyboard. What's the output of "locale"? You should have UTF-8 in the LC_CTYPE locale. Also check that your keyboard layout support dead keys? Launch xev and press the acute accent key (') (for example and verify that is dead_acute.
Offline
"locale" gives this as output:
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
The accent key effectively gives dead_acute in xev.
"I serve...a higher authority..."
Offline
What is exactly the software affected and how have you installed it? Can you launch a simple windows manager (that does not configure the keyboard); set the keyboard manually with setxkbmap and retry. I have just tried with sublime-text from the AUR and have issued "setxkbmap latam" and it works for me.
Last edited by olive (2016-11-08 14:53:25)
Offline
I am mostly interested in sublime-text, installed from the AUR via yaourt.
I am on i3. My keyboard configuration was done using
$ localectl set-keymap --no-convert la-latin1
$ localectl set-x11-keymap --no-convert latam pc105 deadtilde ctrl:swap_lalt_lctlI tried resetting it to "us"
$ localectl set-keymap us
$ localectl set-x11-keymap usand rebooting. Once in this configuration, I executed "setxkbmap latam" but my keyboard is still in "us", and the output of "localectl status" is
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us
which is bizarre. Running again
$ localectl set-keymap --no-convert la-latin1
$ localectl set-x11-keymap --no-convert latam pc105 deadtilde ctrl:swap_lalt_lctland rebooting reverts the keyboard to spanish but I am still getting "´a" instead of "á" in Sublime Text...
Last edited by geno_whirl (2016-11-08 16:55:59)
"I serve...a higher authority..."
Offline
GTK_IM_MODULE= sublime?
Offline
GTK_IM_MODULE= sublime?
Worked perfectly after reboot! Can you explain to me a little bit more what the problem was and how did this solve it? Thanks!
"I serve...a higher authority..."
Offline
https://wiki.archlinux.org/index.php/In … talling.29
That was supposed to be a command (unsetting the variable and launching sublime)
In case you somehow
export GTK_IM_MODULE=sublime(notice the missinb blank) you set the variable to an invalid value (and should better fix that) but the general cause is that gtk was using some other™ input method than xim.
Offline
hahaha! thanks, I actually had done that! (btw, the command to lauch sublime-text is subl in my case)
I actually had been setting my GTK_IM_MODULE to "xim" in my .xinitrc... kinda weird that it doesn't work.
"I serve...a higher authority..."
Offline