1
0
Fork 0
forked from wry/wry

fix split bug on single windows and elide titles

This commit is contained in:
kossLAN 2026-05-03 15:35:34 -04:00
parent 7f71a6556b
commit c555593ae2
No known key found for this signature in database
8 changed files with 207 additions and 145 deletions

View file

@ -97,10 +97,10 @@ alt-shift-l = "move-right"
```toml
[shortcuts]
alt-d = "split-horizontal"
alt-v = "split-vertical"
alt-t = "toggle-split"
alt-m = "toggle-mono"
alt-d = "make-group-h"
alt-v = "make-group-v"
alt-t = "change-group-opposite"
alt-m = "toggle-tab"
alt-f = "focus-parent"
```
@ -475,7 +475,7 @@ table and reference them with `$name`:
```toml
[actions]
my-layout = [
"split-horizontal",
"make-group-h",
{ type = "exec", exec = "alacritty" },
]
@ -535,10 +535,9 @@ mode = {
When certain simple actions are used inside a [window rule](../window-rules.md),
they apply to the **matched window** instead of the focused window. The
affected actions are: `move-left`, `move-down`, `move-up`, `move-right`,
`split-horizontal`, `split-vertical`, `toggle-split`, `tile-horizontal`,
`tile-vertical`, `show-single`, `show-all`, `toggle-fullscreen`,
`enter-fullscreen`, `exit-fullscreen`, `close`, `toggle-floating`, `float`,
`tile`, `toggle-float-pinned`, `pin-float`, `unpin-float`, and `resize`.
`toggle-fullscreen`, `enter-fullscreen`, `exit-fullscreen`, `close`,
`toggle-floating`, `float`, `tile`, `toggle-float-pinned`, `pin-float`,
`unpin-float`, and `resize`.
Similarly, `kill-client` applies to the matched window's client in a window
rule, or to the matched client in a client rule.

View file

@ -4,32 +4,20 @@ Jay uses an i3-like tiling layout. Windows are arranged automatically in
containers that can be split horizontally or vertically. Containers can be nested
to create complex layouts.
## Splitting Containers
## Grouping Containers
When you split a window, Jay wraps it in a new container with the specified
direction. Subsequent windows opened in that container are placed side by side
(horizontal split) or stacked top to bottom (vertical split).
When you group a window, Jay wraps it in a new container with the specified
direction. Subsequent windows opened in that group are placed side by side
(horizontal group) or stacked top to bottom (vertical group).
`alt-d` -- `split-horizontal`
: Split the focused window horizontally
`alt-d` -- `make-group-h`
: Group the focused window horizontally
`alt-v` -- `split-vertical`
: Split the focused window vertically
`alt-v` -- `make-group-v`
: Group the focused window vertically
`alt-t` -- `toggle-split`
: Toggle the container's split direction
You can also set the direction explicitly without toggling:
```toml
[shortcuts]
alt-shift-d = "tile-horizontal"
alt-shift-v = "tile-vertical"
```
The `tile-horizontal` action sets the container to horizontal, and
`tile-vertical` sets it to vertical -- unlike `split-horizontal`/`split-vertical`
which wrap the window in a new container first.
`alt-t` -- `change-group-opposite`
: Toggle the current group's direction
## Moving Focus
@ -81,22 +69,14 @@ windows at once. For example, focusing a parent container and then using
By default, a container shows all its children side by side. Mono mode changes
this so only one child is visible at a time, similar to a tabbed view.
`alt-m` -- `toggle-mono`
: Toggle between mono and side-by-side
`alt-m` -- `toggle-tab`
: Toggle between tabbed and side-by-side
You can also right-click any title in a container to toggle mono mode.
In mono mode, scroll over the title bar to cycle between windows in the
container.
For explicit control without toggling:
```toml
[shortcuts]
alt-s = "show-single" # Enter mono mode
alt-a = "show-all" # Exit mono mode
```
## Fullscreen
Press `alt-u` (`toggle-fullscreen`) to make the focused window fill the entire
@ -137,20 +117,17 @@ Double-click a tile's title bar to toggle it between tiled and floating. See
## Summary of Tiling Actions
`split-horizontal`
: Wrap focused window in a horizontal container
`make-group-h`
: Wrap focused window in a horizontal group
`split-vertical`
: Wrap focused window in a vertical container
`make-group-v`
: Wrap focused window in a vertical group
`toggle-split`
: Toggle container split direction
`make-group-tab`
: Wrap focused window in a tabbed group
`tile-horizontal`
: Set container direction to horizontal
`tile-vertical`
: Set container direction to vertical
`change-group-opposite`
: Toggle group direction
`focus-left/right/up/down`
: Move keyboard focus
@ -161,14 +138,8 @@ Double-click a tile's title bar to toggle it between tiled and floating. See
`focus-parent`
: Focus the parent container
`toggle-mono`
: Toggle mono mode
`show-single`
: Enter mono mode
`show-all`
: Exit mono mode
`toggle-tab`
: Toggle tabbed mode
`toggle-fullscreen`
: Toggle fullscreen