GithubHelp home page GithubHelp logo

stonevil / keyboardswitcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lutzifer/keyboardswitcher

0.0 3.0 0.0 801 KB

List, show and switch OSX Keyboard Layouts from the command line.

Ruby 3.79% Swift 47.50% Objective-C 48.71%

keyboardswitcher's Introduction

keyboardSwitcher

List, show and switch OSX Keyboard Layouts from the command line.

A tool to set the current KeyboardLayout

Available Commands

  • list: list the available layouts
  • enabled: list enabled layouts (the ones you include in System Preferences)
  • select "<layout>": sets the layout
  • get: get the current layout
  • version: print the version of KeyboardSwitcher

Limitations

For the "select" command to successfully run, the keyboard layout needs to be added in the OSX Settings app under Keyboard > Sources.

Possible usages

I use this in combination with control plane (http://www.controlplaneapp.com) to select the keyboard layout depending on whether my Bluetooth Keyboard is connected (-> US Layout) or not (-> German Layout) as well as via an Alfred workflow. For instructions on this, see below.

Installation

brew tap lutzifer/homebrew-tap
brew install keyboardSwitcher

Use with Alfred

Simply download the workflow available at https://github.com/Lutzifer/keyboardSwitcher/releases/tag/0.0.4

Use the "eng" and "ger" commands to quickly change the layout or define your own.

Use with ControlPlane

See How to use keyboardSwitcher to automatically change the layout when a bluetooth keyboard is present

Examples

list: list the available layouts

$ keyboardSwitcher list
Available Layouts:
  	2-Set Korean
  	3-Set Korean
  	390 Sebulshik
  	Afghan Dari
  	Afghan Pashto
  	Afghan Uzbek
  	Anjal
    (…)

enabled: list enabled layouts

$ keyboardSwitcher enabled
Enabled Layouts:
        Colemak
        Turkish - QWERTY PC
        U.S.

select: set the layout

get: get the current layout

$ keyboardSwitcher select "German"
$ keyboardSwitcher get
German
$ keyboardSwitcher select "U.S."
$ keyboardSwitcher get
U.S.

keyboardswitcher's People

Contributors

akaralar avatar ibotdotout avatar lutzifer avatar

Watchers

 avatar  avatar  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.