I'm confused about using setxkbmap
. When I use it in my terminal emulator under X, it works:
setxkbmap -layout gr -option # switches layout to greek
However, if I switch to tty2, execute the command (with proper DISPLAY set) and switch back to X, layout does not change:
DISPLAY=:0 setxkbmap -layout gr -option
What am I doing wrong?
DISPLAY
is not enough. Have you setXAUTHORITY
, too? Is this the same user in tty and X? Can you start any X program from tty? – Hauke Laging Oct 23 '17 at 20:47setxkbmap
throughstrace
in tty and an X terminal emulator and compare the outputs. – Hauke Laging Oct 24 '17 at 18:25