Skip to content

sendhil/yabai-stack-navigator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yabai Stack Navigator

A simple script to make navigating between stacks and windows in Yabai easier. I wrote this as I wanted to be able to use the same keyboard shortcut to navigate between windows and stacks. I found some options listed in this issue but they didn't quite do everything I wanted (specifically rotate at the end of the stacks).

Installation

pip install yabai-stack-navigator

Usage

Call the script with --next or --previous and it'll navigate to the appropriate window/stack. I use skhd and my setup looks like:

alt - h : yabai-stack-navigator --prev
alt - l : yabai-stack-navigator --next

Here's a video of this in action (note, I use the Stackline to help with visualizing stacks).

yabai stack navigator

Changes

1.0.8

  • Fixed ordering bug with more than one external monitor.

1.0.7

  • Added ability to navigate between displays (except when encountering a stack).

1.0.6

  • Being a relative Python newbie, I made a mistake in the way I setup the CLI and it resulted in the main.py being added to the root folder of site-packages. Upgrading to this version should fix this, but you can double check by seeing if main.py in the python site-packages folder(e.g. /opt/homebrew/lib/python3.x/site-packages/main.py) matches this code and if it does please remove it. Sorry for the inconvenience.