Coder Social home page Coder Social logo

force-language's Introduction

Force language

A Hammerspoon configuration which rests you assured that you will aways have a right input source in apps where you need it.

Example use case

I'm Russian developer but want to always have English input source in some dev applications like iTerm, IDEA, Android Studio, etc. Unfortunately in some cases MacOS can't guarantee that (which is annoying), but this script fixes that issue.

Installation & Configuration

  1. Ensure that you have MacOS with the latest Hammerspoon installed.
  2. Copy & paste the code from init.lua to your Hammerspoon Config file.
  3. Check target_lang and target_apps values in the code โ€” edit them for your specific needs or leave as is.
  4. Save Config file and reload it in Hammerspoon.
  5. Viola!
  6. You may also want to enable launching Hammerspoon at login in Preferences.

Usage

This script only sets the desired input source when you switch focus to specified apps. You will be able to change the input source when already focused on the app. The non-target apps input source behaviour won't be affected.

License

This project is licensed under the MIT License.

force-language's People

Contributors

sv3k avatar

Watchers

 avatar

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.