Don't think about switching between layouts when switching to another workspace. Let this app do it for you.
Make sure that python3 -V
gives you Python 3.7.0
This project by now uses these dependencies:
It usually depends on what linux flavor you are using.
cd
to a desired directory(usually you want this to be in ~/.config/
) and git clone https://github.com/f0s3/i3-autokeymap
pacaur -S xkblayout-state-git
sudo pip3 install psutil
for installing psutil globally or pip3 install --user psutil
for current user
To run script use python3 keymap.py
Example of config line: exec_always --no-startup-id "cd ~/.config/i3-autokeymap && python3 keymap.py"