Code Monkey home page Code Monkey logo

karabiner-elements-config's Introduction

karabiner-elements-config

This is my Karabiner-elements config, it sets up media keys to work with Spotify, as well as the touch bar controls.

How to use this config

  • clone this repo into your ~/.config/karabiner folder

    โš ๏ธ This will replace your Karabiner-elements config because that's how I would do this if I need it on another computer myself, if you don't want this please manually copy things from the repo instead. Read the karabiner.json to figure out the parts which aren't code and make sure you place the config file in the complex_modifications folder.

    git clone [email protected]:tamm/karabiner-elements-config.git ~/.config/karabiner
    
  • disable mac control of media keys

    launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
    
  • if you didn't copy the whole config, add basic modifications for the "TouchBarUserDevice (Apple Inc.)" target device as follows:

    • rewind -> f7
    • play_or_pause -> f8
    • fast_forward -> f9

Fine print

Seeing as I needed to do a couple of things different from others who have done this I hope it works for you, but I don't make any guarantees. If you make improvements feel free to tell me!

You can put the AppleScript files anywhere you'd like, but I needed to reference them with ~/.config/karabiner/ because my Karabiner-elements defaults to / instead of the folder as described by others.

I got this idea from Remy Sharp's blog and couldn't have made this work without Ralph Callaway's repo Mac-Spotify-Play-Pause-Lock. I also got some inspiration from this answer at StackOverflow.

karabiner-elements-config's People

Contributors

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