Swiftpack.co - jeantil/autokbisw as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jeantil.
jeantil/autokbisw 1.2.0
project has migrated - Automatic keyboard/input source switching for OSX
⭐️ 202
🕓 32 weeks ago
.package(url: "https://github.com/jeantil/autokbisw.git", from: "1.2.0")

Autokbisw - Automatic keyboard input source switcher

This project has migrated

@ohueter has taken upon himself to fix the build on newer versions of OSX, the most up to date version of autokbisw can now be found on his fork https://github.com/ohueter/autokbisw

This repository is no longer maintained


This small utility was born out of frustation after a mob programming sesssion. The session took place on a french mac book pro, using a pair of french pc keyboards. Some programmers were used to eclipse, others to intellij on linux, others to intellij on mac.

While OSx automatically switches the layout when a keyboard is activated it doesn't change the keymap, meaning we had to remember changing both the os and the IDE keymap each time we switched developper.

This software removes one of the switches: it memorizes the last active osx input source for a given keyboard and restores it automatically when that keyboard becomes the active keyboard.


From Binaries

Download one of the binary packages from this repository releases, unzip its content to whatever folder suits you and run it.

If you want the program to start automatically when you log in, you can copy the provided plist file to ~/Library/LaunchAgents and load it manually for the first run:

cp eu.byjean.autokbisw.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/eu.byjean.autokbisw.plist

Via Homebrew

brew install jeantil/autokbisw/autokbisw

From Source

Clone this repository, make sure you have xcode installed and run the following command:

swift build --configuration release

In the output will be the path to the built program, something like ${PWD}/.build/release/autokbisw.

You can run it as is or install it :

cp ${PWD}/.build/release/autokbisw /usr/local/bin/
cp autokbisw/eu.byjean.autokbisw.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/eu.byjean.autokbisw.plist


Stars: 202
Last commit: 32 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Homebrew compatibility
3 years ago

This release makes the project compatible with homebrew's policy

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics