GithubHelp home page GithubHelp logo

rami3l / claveilleur Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 52 KB

An input source switching daemon for macOS.

License: BSD 2-Clause "Simplified" License

Swift 100.00%
input-method input-method-editor input-sources mac macos swift

claveilleur's Introduction

Claveilleur

Claveilleur /kla.vɛ.jœʁ/ is a simple input source switching daemon for macOS.

Inspired by a native Windows functionality, it can automatically switch the current input source for you according to the current application (rather than the current document).

WARNING: This is still a work in progress. Use it with care!

Building & Installation

Installing with brew

brew install rami3l/tap/claveilleur

Building from source

# The recommended way is to use `mint`, so we will install it first:
brew install mint

# To live on the bleeding edge:
mint install rami3l/Claveilleur@master

Usage

Getting started is as simple as:

# Installs the launch agent under `~/Library/LaunchAgents`
claveilleur --install-service

# Starts the service through launchd
claveilleur --start-service

If this is your first time using Claveilleur, please note that you might need to grant necessary privileges through System Settings > Privacy & Security > Accessibility. After doing so, you might need to stop the service and start it again for those changes to take effect:

# Restarts the service through launchd
claveilleur --stop-service && claveilleur --start-service

To uninstall the service, you just need to run the following:

# Stops the service through launchd
claveilleur --stop-service

# Removes the launch agent from `~/Library/LaunchAgents`
claveilleur --uninstall-service

claveilleur's People

Contributors

dependabot[bot] avatar rami3l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

claveilleur's Issues

[Bug] Switching away from certain apps is not detected

For several apps, Claveilleur can use AXFocusedWindowChanged to see if they are switched to, but it doesn't seem to know when they are switched away from.

Some examples include:

  • com.apple.notificationcenterui
  • com.apple.controlcenter

The current workaround is simply to first switch to another app that doesn't have this issue, and after that everything will work as intended again.

[Bug] Prebuilt binary not working on `arm64`

@wtdcode: The Accessibility API prompt persists even if the permissions have been successfully granted in System Settings.

This is an issue unique to running a CI-built binary on arm64. Neither x64 machines nor self-built binaries is affected.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.