The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

i3 on suse with different keyboard layout

asked 2014-06-03 09:58:27 +0000

jr gravatar image

updated 2014-06-09 17:38:13 +0000

phairland gravatar image

I am currently using the german-neo2 keyboard layout and i3, which works fine on an ubuntu machine.

At work I have to use Suse 12.3 and unfortunately, I can't user either i3 or the neo2 layout. If i want to use both I get some errors.

This starts with the i3-config-wizard which doesn't respond to keyboard inputs. After setting up a config-file manually and start i3, the first thing I recognize is that I am still on a qwertz-layout. (I set the layout in my i3-config with exec "setxkbmap de neo")

In this situation i3 seems to work even though I have some different keycodes in the config-file.If I change the keyboard layout to neo2 my keycodes don't work anymore. I suppose there migth be some issue at the start-up of i3 i.e. the config-file doesn't get loaded properly. Any Idea what goes wrong ? Thank you for any suggestions.

edit retag flag offensive close merge delete

Comments

Are you using `bindcode` or `bindsym`? I'm using Neo2, too. I've set up my whole configuration with `bindcode` so the keys are the same no matter the layout.

Adaephon gravatar imageAdaephon ( 2014-06-04 08:43:26 +0000 )edit

I also tried it with bindcode, but this doesnt work, if I switch to the neo2 layout I cant use the modkeys. Therefore i suppose that the configfile somehow is not loaded properly.

jr gravatar imagejr ( 2014-06-04 09:10:07 +0000 )edit

That is very strange, it works flawlessly for me. It would help if we could have a look on your configuration. Could you add a few relevant lines from your configuration to your question?

Adaephon gravatar imageAdaephon ( 2014-06-04 13:29:45 +0000 )edit

I tried i.e. this config file, https://github.com/mgsnova/i3/blob/master/i3.config.keycodes. I also created a config file with the neo layout on another machine which don't work.

jr gravatar imagejr ( 2014-06-05 12:47:11 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-10 12:57:50 +0000

KJ44 gravatar image

updated 2014-06-10 13:01:15 +0000

I'm from the UK but I use the US keyboard layout. Furthermore I have i3 inside a VM on a laptop and I use Synergy such that I can type on the desktop keyboard and redirect keystrokes to the laptop. See http://synergy-project.org/

The best way to get things exactly as you want is to dump your keyboard configurations using "xmodmap -pke", edit the config, and reload using xmodmap.

Then you can apply different xmodmap configs according to context. For example I need a different keyboard config when I'm using the laptop (ansible) from my desktop (gojira) versus using the laptop standalone while away from my office.

if [ $(ping -c 1 gojira | grep '64 bytes from gojira' | wc -l) -eq 1 ]; then
    xmodmap ~/dotfiles/dot-Xmodmap-ansible-Synergy
else 
    xmodmap ~/dotfiles/dot-Xmodmap-ansible-ThinkPad
fi
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-06-03 09:58:27 +0000

Seen: 449 times

Last updated: Jun 10 '14