Skip to content

Script to unstack windows #70

Closed
Closed

Description

@blackvvine

Hi,

I've recently switched from i3wm on Linux to yabai+stackline+skhd, so I'm kind of new to this. I have configured a keybinding to stack a window with the next one via:

yabai -m window --stack next

However, I can't seem to find any docs on how this can be undone i.e. how can I "unstack" windows.

Activity

  1. johnallen3d commented on Mar 23, 2021

    @johnallen3d

    I have a little script I use to "toggle" stacks (can't remember if I copied this from someone else at this point).

    #! /usr/bin/env bash
    
    current_layout="$(yabai -m query --spaces --space | jq -re .type)"
    
    target_layout="bsp"
    
    [ "${current_layout}" = "bsp" ] && target_layout="stack"
    
    yabai -m space --layout $target_layout

    This is triggered in my skhd config via:

    cmd - m : /Users/usernamehere/.config/yabai/toggle-monocle
  2. blackvvine commented on Apr 1, 2021

    @blackvvine
    Author

    Awesome, thank you 🎉 🙏

  3. pinned this issue on Jun 10, 2021
  4. changed the title [-]Undo stack window[/-] [+]Script to unstack windows[/+] on Jun 10, 2021
  5. kiryph commented on Dec 2, 2021

    @kiryph

    Here is a one-liner for ~/.config/skhd/skhdrc

    alt - t : yabai -m space --layout $( [ "$(yabai -m query --spaces --space | jq -re .type)" = 'bsp' ] && echo 'stack' || echo 'bsp' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions