mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-28 11:22:47 +01:00
refactor(repo): move the KDE and macOS docs under docs/ (pure move)
komorebi-for-kde/docs/ -> docs/linux/ komorebi-for-mac/docs/ -> docs/macos/ The Windows docs stay where they are (docs/). Renames only, so links and include paths that named the old directories are broken at this revision; they are fixed in the revision that fixes the paths of the whole layout move.
This commit is contained in:
1 parent
348cb7ae96
commit
d781028a2a
390 files changed
No files matched your search
@@ -0,0 +1,111 @@
|
||||
# Animations
|
||||
|
||||
Windows can be animated when they move to their place in a layout. Animations are off by default.
|
||||
|
||||
```json
|
||||
{
|
||||
"animation": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
They can also be turned on and off while komorebi is running with the [`komorebic animation`](../cli/animation.md)
|
||||
command.
|
||||
|
||||
## Duration, style and frame rate
|
||||
|
||||
Every move takes the same amount of time, whatever the distance, and the animation style decides how that time is
|
||||
spent: whether a window starts quickly and settles gently, or the other way around.
|
||||
|
||||
```json
|
||||
{
|
||||
"animation": {
|
||||
"enabled": true,
|
||||
"duration": 250,
|
||||
"style": "EaseOutCubic",
|
||||
"fps": 60
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The duration is set in milliseconds with [`komorebic animation-duration`](../cli/animation-duration.md), the style with
|
||||
[`komorebic animation-style`](../cli/animation-style.md), and the number of frames per second with
|
||||
[`komorebic animation-fps`](../cli/animation-fps.md).
|
||||
|
||||
Styles that start quickly and settle gently, such as `EaseOutCubic`, `EaseOutQuart`, `EaseOutQuint` and `EaseOutExpo`,
|
||||
tend to feel the most natural for windows, and the ones further down that list settle more gently than the ones above
|
||||
them. `Linear`, the default, moves windows at a constant speed and stops them abruptly.
|
||||
|
||||
## Different animations for different things
|
||||
|
||||
Every option can be set for a kind of animation instead of for all of them. There are two kinds: `movement`, for windows moving to their place in a layout, and `workspace`, for switching
|
||||
workspaces.
|
||||
|
||||
```json
|
||||
{
|
||||
"animation": {
|
||||
"enabled": {
|
||||
"movement": true,
|
||||
"workspace": true
|
||||
},
|
||||
"duration": {
|
||||
"movement": 300,
|
||||
"workspace": 400
|
||||
},
|
||||
"style": {
|
||||
"movement": "EaseOutQuint",
|
||||
"workspace": "EaseOutCubic"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Switching workspaces
|
||||
|
||||
With the `workspace` animation on, the windows of the workspace that you leave slide out of the monitor, and the windows
|
||||
of the workspace that you enter slide in from the other side: from the right when the workspace that you go to has a
|
||||
higher number, and from the left when it has a lower one.
|
||||
|
||||
```json
|
||||
{
|
||||
"animation": {
|
||||
"enabled": {
|
||||
"workspace": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
What slides are pictures of the windows, which komorebi takes with the Screen Recording permission that it already asks
|
||||
for, and not the windows themselves. The real windows are put away, or kept waiting, behind the pictures, and the ones
|
||||
that you enter are shown where the pictures end up, which the pictures fade away over. The pictures have borders of
|
||||
their own, in the colours that the windows' borders have or are about to have, which slide along with them. `fps` does not apply: the
|
||||
pictures are moved by the system.
|
||||
|
||||
Switching workspaces is not animated if a window on either workspace is maximized, if there is nothing to slide, and for
|
||||
a window that komorebi cannot take a picture of, which is put away or shown at once. Only the `focus-workspace` commands
|
||||
are animated for now. Everything else that changes workspace, such as moving a window to another one, happens at once.
|
||||
|
||||
## Good to know
|
||||
|
||||
- Windows are moved by asking each app to move them, one frame at a time. The next frame is only started once the last
|
||||
one has been applied to every window, so that neighbouring windows stay in step. An app that is slow to answer slows
|
||||
all of the windows down a little, rather than falling out of step with them, unless it takes much longer than a few
|
||||
frames, in which case it is left to catch up by itself.
|
||||
- Changing the size of a window is much more work for an app than moving it, because the app has to lay itself out and
|
||||
draw itself again. For some apps, browsers and editors in particular, that takes longer than a frame. Windows of those
|
||||
apps are only sent new sizes as often as they can keep up with, and carry on moving smoothly in between, so that they
|
||||
do not hold the other windows up. They arrive at the right size, but their sizes change in coarser steps on the way.
|
||||
- Where a window starts from is remembered rather than asked for, so that all of the windows start moving together. It
|
||||
is forgotten as soon as an app reports that its window has been moved by something else.
|
||||
- A window is checked once it arrives. If an app ignored a move, or is not able to be as large or as small as the layout
|
||||
wants, the move is repeated a few times and then left alone.
|
||||
- Some apps animate every move they are asked to make, which gets in the way of komorebi's animation. While a window is
|
||||
being animated komorebi turns this off for the app, and puts it back afterwards.
|
||||
- A window that you grab with the mouse while it is moving is let go of straight away.
|
||||
- Stacking and unstacking windows, and cycling or focusing a window in a stack, are never animated.
|
||||
- In the Scrolling layout, windows that scroll out of view slide off the edge of the screen that they left by instead of
|
||||
disappearing, and windows that scroll back into view slide in from the same edge.
|
||||
- To see how an animation went, run komorebi with `--log-level debug`. When the windows stop moving, a line starting with
|
||||
`animated for` reports how many frames were drawn, how many were late, and how long the apps took to answer.
|
||||
@@ -0,0 +1,46 @@
|
||||
# Focusing Windows
|
||||
|
||||
Windows can be focused in a direction (left, down, up, right) using the [`komorebic focus`](../cli/focus.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + h : komorebic focus left
|
||||
alt + j : komorebic focus down
|
||||
alt + k : komorebic focus up
|
||||
alt + l : komorebic focus right
|
||||
```
|
||||
|
||||
Windows can be focused in a cycle direction (previous, next) using the [`komorebic cycle-focus`](../cli/cycle-focus.md)
|
||||
command.
|
||||
|
||||
```
|
||||
# example showing you might bind this command
|
||||
|
||||
alt + shift + oem_4 : komorebic cycle-focus previous # oem_4 is [
|
||||
alt + shift + oem_6 : komorebic cycle-focus next # oem_6 is ]
|
||||
```
|
||||
|
||||
It is possible to attempt to focus the first window, on any workspace, matching an exe using the [
|
||||
`komorebic eager-focus`](../cli/eager-focus.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
win + 1 : komorebic eager-focus firefox.exe
|
||||
```
|
||||
|
||||
The window at the largest tile can be focused using the [`komorebic promote-focus`](../cli/promote-focus.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + return : komorebic promote-focus
|
||||
```
|
||||
|
||||
The behaviour when attempting to call `komorebic focus` when at the left or right edge of a monitor is determined by
|
||||
the [`cross_boundary_behaviour`](https://komorebi.lgug2z.com/schema#cross_boundary_behaviour) configuration option.
|
||||
|
||||
When set to `Workspace`, the next workspace on the same monitor will be focused.
|
||||
|
||||
When set to `Monitor`, the focused workspace on the next monitor in the given direction will be focused.
|
||||
@@ -0,0 +1,59 @@
|
||||
# Focusing Workspaces
|
||||
|
||||
Workspaces on the focused monitor can be focused by their index using the [
|
||||
`komorebic focus-workspace`](../cli/focus-workspace.md) command.
|
||||
|
||||
If this command is called with an index for a workspace which does not exist, that workspace, and all workspace indexes
|
||||
required to get to that workspace, will be created.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + 1 : komorebic focus-workspace 0
|
||||
alt + 2 : komorebic focus-workspace 1
|
||||
alt + 3 : komorebic focus-workspace 2
|
||||
```
|
||||
|
||||
Workspaces on the focused monitor can be focused in a cycle direction (previous, next) using the [
|
||||
`komorebic cycle-workspace`](../cli/cycle-workspace.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + oem_4 : komorebic cycle-workspace previous # oem_4 is [
|
||||
alt + shift + oem_6 : komorebic cycle-workspace next # oem_6 is ]
|
||||
```
|
||||
|
||||
Workspaces on other monitors can be focused by both the monitor index and the workspace index using the [
|
||||
`komorebic focus-monitor-workspace`](../cli/focus-monitor-workspace.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + 1 : komorebic focus-monitor-workspace 0 0
|
||||
alt + 2 : komorebic focus-monitor-workspace 0 1
|
||||
alt + 3 : komorebic focus-monitor-workspace 1 0
|
||||
```
|
||||
|
||||
Workspaces on any monitor can be focused by their name (given that all workspace names across all monitors are unique)
|
||||
using the [`komorebic focus-named-workspace`](../cli/focus-named-workspace.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + c : komorebic focus-named-workspace coding
|
||||
```
|
||||
|
||||
Workspaces on all monitors can be set to the same index (emulating single workspaces which span across all monitors)
|
||||
using the [`komorebic focus-workspaces`](../cli/focus-workspaces.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + 1 : komorebic focus-workspaces 0
|
||||
alt + 2 : komorebic focus-workspaces 1
|
||||
alt + 3 : komorebic focus-workspaces 2
|
||||
```
|
||||
|
||||
The last focused workspace on the focused monitor can be re-focused using the [
|
||||
`komorebic focus-last-workspace`](../cli/focus-last-workspace.md) command.
|
||||
@@ -0,0 +1,59 @@
|
||||
# Moving Windows Across Workspaces
|
||||
|
||||
Windows can be moved to another workspace on the focused monitor using the [
|
||||
`komorebic move-to-workspace`](../cli/move-to-workspace.md) command. This command will also move your focus to the
|
||||
target workspace.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + 1 : komorebic move-to-workspace 0
|
||||
alt + shift + 2 : komorebic move-to-workspace 1
|
||||
alt + shift + 3 : komorebic move-to-workspace 2
|
||||
```
|
||||
|
||||
Windows can be sent to another workspace on the focused monitor using the [
|
||||
`komorebic send-to-workspace`](../cli/send-to-workspace.md) command. This command will keep your focus on the origin
|
||||
workspace.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + 1 : komorebic send-to-workspace 0
|
||||
alt + shift + 2 : komorebic send-to-workspace 1
|
||||
alt + shift + 3 : komorebic send-to-workspace 2
|
||||
```
|
||||
|
||||
Windows can be moved to another workspace on the focused monitor in a cycle direction (previous, next) using the [
|
||||
`komorebic cycle-move-to-workspace`](../cli/cycle-move-to-workspace.md) command. This command will also move your focus
|
||||
to the target workspace.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + oem_4 : komorebic cycle-move-to-workspace previous # oem_4 is [
|
||||
alt + shift + oem_6 : komorebic cycle-move-to-workspace next # oem_6 is ]
|
||||
```
|
||||
|
||||
Windows can be sent to another workspace on the focused monitor in a cycle direction (previous, next) using the [
|
||||
`komorebic cycle-move-to-workspace`](../cli/cycle-move-to-workspace.md) command. This command will keep your focus on
|
||||
the origin workspace.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + oem_4 : komorebic cycle-send-to-workspace previous # oem_4 is [
|
||||
alt + shift + oem_6 : komorebic cycle-send-to-workspace next # oem_6 is ]
|
||||
```
|
||||
|
||||
Windows can be moved or sent to the focused workspace on a another monitor using the [
|
||||
`komorebic move-to-monitor`](../cli/move-to-monitor.md) and [`komorebic send-to-monitor`](../cli/send-to-monitor.md)
|
||||
commands.
|
||||
|
||||
Windows can be moved or sent to the focused workspace on a monitor in a cycle direction (previous, next) using the [
|
||||
`komorebic cycle-move-to-monitor`](../cli/cycle-move-to-monitor.md) and [
|
||||
`komorebic cycle-send-to-monitor`](../cli/cycle-send-to-monitor.md) commands.
|
||||
|
||||
Windows can be moved or sent to a named workspace on any monitor (given that all workspace names across all monitors are
|
||||
unique) using the [`komorebic move-to-named-workspace`](../cli/move-to-named-workspace.md) and [
|
||||
`komorebic send-to-named-workspace`](../cli/send-to-named-workspace.md) commands
|
||||
@@ -0,0 +1,50 @@
|
||||
# Moving Windows
|
||||
|
||||
Windows can be moved in a direction (left, down, up, right) using the [`komorebic move`](../cli/move.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + h : komorebic move left
|
||||
alt + shift + j : komorebic move down
|
||||
alt + shift + k : komorebic move up
|
||||
alt + shift + l : komorebic move right
|
||||
```
|
||||
|
||||
Windows can be moved in a cycle direction (previous, next) using the [`komorebic cycle-move`](../cli/cycle-move.md)
|
||||
command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + oem_4 : komorebic cycle-move previous # oem_4 is [
|
||||
alt + shift + oem_6 : komorebic cycle-move next # oem_6 is ]
|
||||
```
|
||||
|
||||
The focused window can be moved to the largest tile using the [`komorebic promote`](../cli/promote.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + return : komorebic promote
|
||||
```
|
||||
|
||||
The behaviour when attempting to call `komorebic move` when at the left or right edge of a monitor is determined by
|
||||
the [`cross_boundary_behaviour`](https://komorebi.lgug2z.com/schema#cross_boundary_behaviour) configuration option.
|
||||
|
||||
When set to `Workspace`, the focused window will be moved to the next workspace on the focused monitor in the given
|
||||
direction
|
||||
|
||||
When set to `Monitor`, the focused window will be moved to the focused workspace on the next monitor in the given
|
||||
direction.
|
||||
|
||||
The behaviour when calling `komorebic move` with `cross_boundary_behaviour` set to `Monitor` can be further refined with
|
||||
the [`cross_monitor_move_behaviour`](https://komorebi.lgug2z.com/schema#cross_monitor_move_behaviour) configuration
|
||||
option.
|
||||
|
||||
When set to `Swap`, the focused window will be swapped with the window at the corresponding edge of the adjacent monitor
|
||||
|
||||
When set to `Insert`, the focused window will be inserted into the focused workspace on the adjacent monitor.
|
||||
|
||||
When set to `NoOp`, the focused window will not be moved across a monitor boundary, though focusing across monitor
|
||||
boundaries will continue to function.
|
||||
@@ -0,0 +1,230 @@
|
||||
# The Scrolling Layout
|
||||
|
||||
In the Scrolling layout every window is a column in a row that is as long as it needs to be, and the screen is a
|
||||
viewport onto a part of it. A new window is added to the right of the focused one. Nothing is squeezed to make it fit:
|
||||
the row gets longer, and the screen scrolls to follow your focus. Every workspace that uses the layout has a row of
|
||||
its own, and the screen of the monitor that shows it is the viewport onto it, so each monitor has a strip of its own,
|
||||
and focus and move commands carry on to the next monitor when they reach the end of one.
|
||||
|
||||
```json
|
||||
{
|
||||
"monitors": [
|
||||
{
|
||||
"workspaces": [
|
||||
{
|
||||
"name": "I",
|
||||
"layout": "Scrolling",
|
||||
"layout_options": {
|
||||
"scrolling": {
|
||||
"columns": 3,
|
||||
"center_focused_column": "Never"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Column widths
|
||||
|
||||
`columns` says how many columns fit across the screen, which is to say that a new column is a `columns`th of the screen
|
||||
wide. It is `3` unless you say otherwise. It does not say how many windows there are: a lone window is a third of the
|
||||
screen wide, and is not stretched to fill it.
|
||||
|
||||
- Opening or closing a window never changes the width of another window.
|
||||
- A column that you have resized keeps its width as windows come and go.
|
||||
- Columns that you have not resized follow `columns`. Changing it with
|
||||
[`komorebic scrolling-layout-columns`](../cli/scrolling-layout-columns.md), or crossing the threshold of a
|
||||
`layout_options_rules` entry, lays them out again.
|
||||
|
||||
## Centring the focused column
|
||||
|
||||
`center_focused_column` says when the focused column is put in the middle of the screen. It is one of:
|
||||
|
||||
- `"Never"`, the default, which scrolls only as far as it has to.
|
||||
- `"Always"`, which keeps the focused column in the middle of the screen.
|
||||
- `"OnOverflow"`, which centres it when it does not fit on the screen together with the column that focus came from.
|
||||
|
||||
`true` and `false` are also accepted, as they were before there were three choices: `true` is `"Always"` and `false` is
|
||||
`"Never"`. Like `columns`, it is set for a workspace, or for a `layout_options_rules` entry.
|
||||
|
||||
A lone window is a third of the screen wide, at the left edge. To have it fill the screen, or to take it out of the
|
||||
layout for a while, use [`komorebic toggle-monocle`](../cli/toggle-monocle.md).
|
||||
|
||||
## Columns of several windows
|
||||
|
||||
A column can hold more than one window, one above the other, sharing the height of the screen. A new window is always a
|
||||
column of its own, to the right of the column that has focus. To put windows in the same column:
|
||||
|
||||
- [`komorebic consume right`](../cli/consume.md) takes the first window of the column on the right and puts it at the
|
||||
bottom of the focused column.
|
||||
- [`komorebic consume left`](../cli/consume.md) takes the last window of the column on the left and puts it at the top of
|
||||
the focused column.
|
||||
- [`komorebic expel`](../cli/expel.md) takes the focused window out of its column and puts it in a column of its own on
|
||||
the right.
|
||||
|
||||
- [`komorebic toggle-column-stack`](../cli/toggle-column-stack.md) stacks the windows of the focused column, or spreads
|
||||
the focused stack out into a column with a window in each slot. A [stack](../cli/stack.md) is one slot that shows one
|
||||
window at a time, and it takes the height of the column. The window that has focus keeps it. The column keeps its width,
|
||||
but the heights that its windows were given are not remembered for when you toggle back.
|
||||
|
||||
A stack is the stack that you have in every layout, so [`cycle-stack`](../cli/cycle-stack.md),
|
||||
[`focus-stack-window`](../cli/focus-stack-window.md) and [`stack`](../cli/stack.md) work on it as they always do.
|
||||
[`unstack`](../cli/unstack.md) takes the window that has focus off the stack and puts it in a column of its own to the
|
||||
right of the one that it was in.
|
||||
|
||||
These only do anything in the Scrolling layout, which is the only one with columns of several windows for now.
|
||||
|
||||
The focused window keeps focus, and stays where it is on screen, when you do any of these.
|
||||
|
||||
Focus and move commands know about columns:
|
||||
|
||||
- [`focus left` and `focus right`](../cli/focus.md) go to the neighbouring column, and to the window in it that had focus
|
||||
last. `focus up` and `focus down` go to the windows of the focused column, and stop at the ends, where they carry on
|
||||
to another monitor as they always did.
|
||||
- [`move left` and `move right`](../cli/move.md) move the whole focused column. `move up` and `move down` move the
|
||||
window up or down in its column.
|
||||
- A column keeps its width, and a [stack](../cli/stack.md) is still one tile showing one of its windows, as in any layout.
|
||||
|
||||
A column that you resized, or made the full width of the screen, keeps that as windows are added to it or taken out.
|
||||
A window that you move to another workspace or monitor is a column of its own there, and keeps the width of the column
|
||||
that it was in.
|
||||
|
||||
## Heights
|
||||
|
||||
The windows of a column share its height equally. To change that:
|
||||
|
||||
- [`komorebic resize-edge up`, `down`](../cli/resize-edge.md) and the [axis](../cli/resize-axis.md) commands make the
|
||||
focused window taller or shorter, by half of the [resize delta](../cli/resize-delta.md) for each edge. The other windows
|
||||
in the column share what it leaves.
|
||||
|
||||
Giving a window a height gives the others in its column an equal share of what it leaves, so there is always something
|
||||
to take up the difference. No window is made shorter than 100 pixels, and what one window is given cannot
|
||||
leave the others with less. A window that is alone in its column is as tall as the screen, and a window that is taken
|
||||
out of its column, or put in another, starts with an equal share.
|
||||
|
||||
## Full width and centring
|
||||
|
||||
- [`komorebic scrolling-layout-full-width`](../cli/scrolling-layout-full-width.md) makes the focused column as wide as the
|
||||
screen, or puts it back to the width that it had.
|
||||
- [`komorebic center-focus`](../cli/center-focus.md) scrolls the screen so that the focused column is in the middle of
|
||||
it, once. `center_focused_column` does it every time that focus moves instead.
|
||||
- [`komorebic expand`](../cli/expand.md) makes the focused column as wide as it can be without moving another column out
|
||||
of view: it takes up the room that the columns on the screen leave. It does nothing when there is none, and in the
|
||||
other layouts. With `center_focused_column` set to `"Always"` it makes the column the full width of the screen, or
|
||||
puts it back, as `scrolling-layout-full-width` does.
|
||||
|
||||
A column that you make the full width of the screen takes the gaps into account, so that it fills the screen exactly.
|
||||
Nothing else moves to make room for a column that gets wider: the focused column keeps its left edge, and the screen
|
||||
scrolls only if the column no longer fits.
|
||||
|
||||
## Scrolling
|
||||
|
||||
The row scrolls only when it has to.
|
||||
|
||||
- Focusing a window that is already on screen does not move anything.
|
||||
- Focusing one that is not scrolls just far enough to bring it in, and no further.
|
||||
- A window that is wider than the screen starts at the left edge.
|
||||
- The focused window does not move when windows to its left open, close or change width.
|
||||
|
||||
When you close a window, focus goes back to the window that it was opened next to if you have not moved focus since,
|
||||
and the screen scrolls back to where it was. If you have, focus goes to the window that takes the closed window's place
|
||||
on the right, or to the one before it if there is none. A window that is closed without having focus does not take focus
|
||||
with it.
|
||||
|
||||
## Panning
|
||||
|
||||
[`komorebic pan`](../cli/pan.md) moves the view along the row without moving focus first. `pan left` brings what is to
|
||||
the left of the screen into view, and `pan right` what is to the right, by the width of a new column. The row comes to
|
||||
rest with a column against an edge of the screen, and focus goes to the nearest column that is fully on the screen if the
|
||||
focused one has gone off it. With [animations](animations.md) on, the windows glide to where the row rests.
|
||||
|
||||
```
|
||||
alt + shift - 0x2B : komorebic pan left # 0x2B is ,
|
||||
alt + shift - 0x2F : komorebic pan right # 0x2F is .
|
||||
```
|
||||
|
||||
It does nothing in the other layouts.
|
||||
|
||||
### With the fingers on a touchpad
|
||||
|
||||
`komorebic pan --stream` reads the gestures of fingers on a touchpad from standard input and moves the view with them:
|
||||
the row follows the fingers while they are down, and when they lift it comes to rest with a column against an edge of the
|
||||
screen, the one that the speed that the fingers lifted at takes it to.
|
||||
|
||||
Nothing in komorebi for Mac writes that stream yet, and skhd has no bindings for swipes, so it takes a program that reads
|
||||
the touchpad and writes it, with its output piped in:
|
||||
|
||||
```
|
||||
touchpad-gestures | komorebic pan --stream
|
||||
```
|
||||
|
||||
The stream is the gesture stream that [whkd](https://github.com/LGUG2Z/whkd) writes on Windows, so a program that
|
||||
writes it works on either: a line for each `begin`, `move`, `end` and `cancel`, a name and then `key=value` fields in any
|
||||
order, with the distances in centimetres and the times in milliseconds on a clock of the program's own, since only the
|
||||
differences between them mean anything. `move` needs `dx` and `t`, and `dy` is not used. Fields and messages that are not
|
||||
known are ignored.
|
||||
|
||||
```
|
||||
begin fingers=3 x=4.000 y=2.000 t=118337
|
||||
move dx=0.420 dy=-0.030 x=4.420 y=1.970 t=118345
|
||||
move dx=0.510 dy=-0.020 x=4.930 y=1.950 t=118353
|
||||
end x=5.400 y=1.950 t=118369
|
||||
```
|
||||
|
||||
- A swipe of 10 centimetres across the touchpad moves the row the width of the screen, and the row can be pulled up to
|
||||
a screen's width past either end, from where it comes back when the fingers lift. `--sensitivity` multiplies the
|
||||
distances, and `--reversed` makes the row go the other way to the fingers.
|
||||
- With `--paging` the row does not follow the fingers: it takes a step, as `komorebic pan` does, for every two
|
||||
centimetres that they go.
|
||||
- A gesture that is given up, or whose stream stops, puts the row back to where it was, and so does one that moves again
|
||||
after you changed workspace. One that ends after you changed workspace lets the row of the workspace that it began on
|
||||
come to rest instead. Vertical movement is not used.
|
||||
- The windows are moved as the fingers go, a few at a time, so one that belongs to an app that is slow to resize lags
|
||||
behind them.
|
||||
- It does nothing in the other layouts.
|
||||
|
||||
## Resizing
|
||||
|
||||
[`komorebic resize-edge`](../cli/resize-edge.md) and [`komorebic resize-axis`](../cli/resize-axis.md) change the width of
|
||||
the focused column, by half of the [resize delta](../cli/resize-delta.md) for each edge, so resizing the horizontal axis
|
||||
changes the width by the whole delta. Dragging an edge with the mouse does the same. Resizing the top or bottom edge
|
||||
changes the [height](#heights) of a window that shares its column with others. A window that is alone in its column is
|
||||
as tall as the screen, so resizing its height does nothing.
|
||||
|
||||
[`komorebic retile`](../cli/retile.md) puts every column back to the width that
|
||||
[`scrolling-layout-columns`](../cli/scrolling-layout-columns.md) gives, and every window in a column of several back to
|
||||
an equal share of its height, on the focused workspace of each monitor. The focused column stays where it is on screen,
|
||||
unless it has to scroll to stay in view.
|
||||
|
||||
## Windows with a minimum width
|
||||
|
||||
Many apps will not make a window narrower than some width, whatever they are asked. komorebi asks a window how wide it is
|
||||
once it has been resized, and if it did not get as narrow as its column, the column becomes as wide as the window needs.
|
||||
With [animations](animations.md) on that is when the window arrives, and with them off it is straight after the resize.
|
||||
The columns after it move along to make room, and nothing overlaps. A column never gets narrower again because of this,
|
||||
and never gets wider than the screen.
|
||||
|
||||
## Windows that are out of view
|
||||
|
||||
A window that scrolls out of view comes to rest at the edge of the screen that it left by, with 5 pixels of it still on
|
||||
screen. It keeps its size, so nothing has to be resized to bring it back. With [animations](animations.md) on, it slides
|
||||
there.
|
||||
|
||||
A window that is partly in view keeps its size too, and overhangs the edge of the screen.
|
||||
|
||||
macOS shows a window on whichever display it overlaps. If another display is next to an edge, a window that rests there
|
||||
or overhangs it would be seen on that display. In that case a window that has scrolled out of view is hidden in a corner
|
||||
of the screen instead, and a window that is partly in view is made narrower to fit on the screen. If your displays are
|
||||
arranged above and below each other rather than side by side, none of this applies.
|
||||
|
||||
## Limits
|
||||
|
||||
These are not done yet.
|
||||
|
||||
- Switching to another layout and back keeps the widths, but a column whose windows were moved past each other in the
|
||||
other layout is made again from the order that they are in.
|
||||
- Every window has a border, including the windows resting at the edges, so you may see a thin line of one at the edge
|
||||
of the screen.
|
||||
@@ -0,0 +1,52 @@
|
||||
# Stacking Windows
|
||||
|
||||
Windows can be stacked in a direction (left, down, up, right) using the [`komorebic stack`](../cli/stack.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + left : komorebic stack left
|
||||
alt + down : komorebic stack down
|
||||
alt + up : komorebic stack up
|
||||
alt + right : komorebic stack right
|
||||
```
|
||||
|
||||
Windows can be popped from a stack using the [`komorebic unstack`](../cli/unstack.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + oem_1 : komorebic unstack # oem_1 is ;
|
||||
```
|
||||
|
||||
Windows in a stack can be focused in a cycle direction (previous, next) using the [
|
||||
`komorebic cycle-stack`](../cli/cycle-stack.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + oem_4 : komorebic cycle-stack previous # oem_4 is [
|
||||
alt + oem_6 : komorebic cycle-stack next # oem_6 is ]
|
||||
```
|
||||
|
||||
Windows in a stack can have their positions in the stack moved in a cycle direction (previous, next) using the [
|
||||
`komorebic cycle-stack-index`](../cli/cycle-stack-index.md) command.
|
||||
|
||||
```
|
||||
# example showing how you might bind this command
|
||||
|
||||
alt + shift + oem_4 : komorebic cycle-stack-index previous # oem_4 is [
|
||||
alt + shift + oem_6 : komorebic cycle-stack-index next # oem_6 is ]
|
||||
```
|
||||
|
||||
Windows in a stack can be focused by their index in the stack using the [
|
||||
`komorebic focus-stack-window`](../cli/focus-stack-window.md) command.
|
||||
|
||||
All windows on the focused workspace can be combined into a single stack using the [
|
||||
`komorebic stack-all`](../cli/stack-all.md) command.
|
||||
|
||||
All windows in a focused stack can be popped using the [`komorebic unstack-all`](../cli/unstack-all.md) command.
|
||||
|
||||
It is possible to tell the window manager to stack the next opened window on top of the currently focused window by
|
||||
using the [
|
||||
`komorebic toggle-workspace-window-container-behaviour`](../cli/toggle-workspace-window-container-behaviour.md) command.
|
||||
Reference in new issue
Block a user