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:
- xkblayout-state (for checking current layout and switching to the next one)
- psutil (for getting the list of processes that are currently running)
It usually depends on what linux flavor you are using.
-
https://github.com/nonpop/xkblayout-state#compilation-and-installation (as official docs say...)
-
cd
to a desired directory(usually you want this to be in~/.config/
) andgit clone https://github.com/f0s3/i3-autokeymap
-
pacaur -S xkblayout-state-git
-
sudo pip3 install psutil
for installing psutil globally orpip3 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"