Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now


Project description


.. image::

.. image::

.. image::
:alt: Documentation Status

.. image::
:alt: Updates

Automatically switches your keyboard layout based on your active window.

Are you using multiple keyboard layouts? Have you discovered that the US
keyboard layout is a lot more suitable for programming than the layout you have
to use when writing email or otherwise communicating in your native language?

Does it annoy you that you need to remember to manually switch between layouts
when going from VIM to your chat/email/whatever app?

If so, Swytcher will solve your problems.

* Free software: MIT license
* Documentation:


* Switch keyboard layout based on X window class
* Switch keyboard layout based on X window name

Planned features

* Remember last keyboard layout for each window


.. code-block:: bash
pip install --user swytcher


Run Swytcher once so that the config file is created (or copy the sample config
from the swytcher patckage).

.. code-block:: bash

Then close the application and edit `~/.config/swytcher/config.ini` and add the
window classes/names to the corresponding layout section.

`layout_primary` maps to your first keyboard layout, and `layout_secondary`
will map to your second. If you have more than two layouts you will have to add
more sections to the config file. Each additional layout section must start
with `layout`, and be uniquely named. The order that they have in the config
file should map to the order that you have defined your different layouts in.

Once you are done editing your config file, you can start Swytcher, and your
keyboard layout will be switched whenever you change focus to a window that
corresponds to a window class and/or name in your config file.

Swytcher has been tested with the Gnome Desktop Environmant and the i3 window
manager. Since Swytcher looks at your X keyboard config it should work with
most DEs and WMs.


This package was created with Cookiecutter_ and the
`audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter:
.. _`audreyr/cookiecutter-pypackage`:


0.1.0 (2017-03-23)

* First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
swytcher-0.1.0-py3-none-any.whl (14.6 kB) Copy SHA256 hash SHA256 Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page