

- #Hammerspoon open application dock keyboard how to
- #Hammerspoon open application dock keyboard software
- #Hammerspoon open application dock keyboard code

System Integrity Protection needs to be (partially) disabled for yabai to inject a scripting addition into Dock.app for controlling windows with functions that require elevated privileges. Please also take note of the following caveats. In the Mission Control preferences pane in System Preferences, the setting "Displays have separate Spaces" must be enabled. The application must be restarted after access has been granted.

Yabai must be given permission to utilize the Accessibility API and will request access upon launch. Make sure you fulfil all of them before filing an issue. Please read the below requirements carefully.
#Hammerspoon open application dock keyboard software
Skhd or any other suitable software you may prefer. Sample configuration files can be found in theĭocumentation or the wiki for further information.

#Hammerspoon open application dock keyboard how to
Yabai wiki has both brief and detailed installation instructions for multiple installation methods, and also explains how to uninstall yabai completely. Additional features of yabai include focus-follows-mouse, disabling animations for switching spaces, creating spaces past the limit of 16 spaces, and much more. The primary function of yabai is tiling window management automatically modifying your window layout using a binary space partitioning algorithm to allow you to focus on the content of your windows without distractions. yabai allows you to control your windows, spaces and displays freely using an intuitive command line interface and optionally set user-defined keyboard shortcuts using
#Hammerspoon open application dock keyboard code
The code I wrote to use semicolon like this sometimes breaks if I try to type too many actual semicolons in a row but I usually rely on JS Beautify to add those for me.Yabai is a window management utility that is designed to work as an extension to the built-in window manager of macOS. That's done with Hammerspoon too! I've got an extra layer of hotkeys available to me to set up whatever else I can think of in the future. I've got another hotkey set up to unset it (semicolon+e).Ĥ) You may have noticed I'm using keyboard shortcuts with semicolon as a modifier key. There are a few things that need to happen before I start a screen recording (opening CamHead.app, setting my screen resolution, and showing the dock at a certain height so I can later crop the video to 16:9) and I have it all bound to a single hotkey (semicolon+r). Now my work music is a single keyboard shortcut (semicolon+m) and a few miliseconds away.ģ) Set up screen recording. I got tired of the friction around opening Spotify, going into my work playlist, hitting play, waiting several moments for the playlist to load, etc, so I downloaded a bunch of mp3s from YouTube and put them in ~/Music/work/. I've got ctrl+space set to Vimcal, alt+space set to midnight.app (a time tracker I'm building), and ctrl+alt+space set to Things.Ģ) Start/stop playing my work playlist of lofi hiphop. Here are the top ways I'm using it right now:ġ) Hide/show apps similar to how iTerm lets you bind a hotkey to hide/show a terminal. It's one of the first must-have-for-a-usable-laptop tools I set up when I get a new MacBook.
