jimlawton / hyper-hacks

macOS shortcut hacks using Karabiner-Elements and Hammerspoon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

These are my macOS shortcut hacks using some combination of Karabiner-Elements and Hammerspoon.

Background:

Hat tip: This started out as a fork of [https://github.com/lodestone/hyper-hacks]. Thanks @lodestone!

Check out the Wiki for ideas on how to configure your init.lua.

Installation:

  • Install Hammerspoon

  • Install Karabiner-Elements

  • Put hammerspoon/init.lua in ~/.hammerspoon/init.lua

  • Put karabiner/karabiner.json in ~/.config/karabiner/karabiner.json

That’s pretty much it.

Configuration:

  • The current configuration assumes that CapsLock has been disabled in System Preferences.

  • The CapsLock key is defined as a new HYPER key (Cmd, Option, Shift, Control).

  • The following shortcuts are defined to launch an app, or focus if it is already running:

    • HYPER+O: "Microsoft Outlook"

    • HYPER+F: "Finder"

    • HYPER+E: "Sublime Text"

    • HYPER+S: "Slack"

    • HYPER+C: "Google Chrome"

  • The following general shortcuts are defined:

    • HYPER+H: Hide all windows.

    • HYPER+T: Invoke iTerm2 visor (hotkey full-screen terminal window).

    • HYPER+L: Lock screen.

  • If HYPER is pressed on its own, it emulates ESCAPE.

About

macOS shortcut hacks using Karabiner-Elements and Hammerspoon.

License:MIT License


Languages

Language:Lua 100.0%