Menu da documentação

Documentação

Windows and workspaces

The stacking window manager: drag, snap, workspaces and shortcuts.

Nesta página

The window stack

TDE is a stacking window manager drawn in cells. Every window sits in one z-ordered stack — there is no automatic tiling layout — and clicking anywhere on a window, including its content, raises it to the top and focuses it.

Windows pinned always on top form a separate band: they are inserted above every normal window and stay there. Raising a normal window still moves focus to it, but a pinned window keeps painting over it.

Each window carries its own title, its own rendered grid, and three pieces of state you can toggle: minimized, maximized and always-on-top.

ActionMouseKeyboard
Focus and raiseClick anywhere on the windowAlt+Tab cycles
MoveDrag the title bar
ResizeDrag the bottom-right grip
Maximize / restoreDouble-click the title barAlt+↑
MinimizeTitle-bar buttonAlt+M
Always on topAlt+P
CloseTitle-bar buttonAlt+W

Maximizing remembers the floating rectangle it came from, so restoring puts the window back exactly where it was. Moving or resizing a maximized window drops that memory and un-maximizes it.

Moving and resizing

The whole window border is a move handle, not only the title row — any border cell that is not a button or the resize grip drags the window. That keeps a window grabbable even when its title bar has been pushed off the top edge.

The resize grip is an L shape in the bottom-right corner: the last two cells of the bottom edge and the last two of the right edge. There is no left, top or edge-only resize. Windows never shrink below 14 × 3 cells.

Tiling

TDE has two ways to snap a window to a region of the work area, both driven by a title-bar drag.

The drag-to-tile overlay. Start dragging a title bar; once you have moved at least two cells and the pointer enters the band at the top-center of the screen, a row of preview boxes appears. Hover one and release to snap the window into it. Leaving the band cancels the overlay.

The overlay always renders in one canonical order, whatever order you list the targets in:

text
Left · TopLeft · BottomLeft · Fullscreen · BottomRight · TopRight · Right

Halves sit on the outside, corners hug the middle, and Fullscreen is the centre target. Which of the seven appear, how tall the bar is, and how much hover padding surrounds it are all set in the [tiling] table — see Configuration.

Edge snapping on release. You can also skip the overlay and drop the window against an edge. That needs a real drag — at least four cells of movement — with the pointer within two cells of an edge or corner. A corner wins over the two half-edges that touch it, and the top edge maximizes.

Both paths produce the same rectangles, measured against the work area:

TargetRegion
FullscreenThe whole work area
Left / RightHalf width, full height
TopLeft / TopRightQuarter, upper row
BottomLeft / BottomRightQuarter, lower row

Odd widths and heights go to the right and bottom halves, so two snapped windows cover the area exactly with no seam column.

Workspaces

A fresh desktop has one workspace. Extra ones are created on demand — click the + at the end of the workspace pager on the taskbar — and the count only grows.

Every window belongs to exactly one workspace. Only the active workspace is composed, hit-tested and listed on the taskbar; windows elsewhere keep running but are not drawn.

ActionHow
Switch to workspace nAlt+1Alt+9
Cycle workspacesAlt + mouse wheel (only with more than one)
Switch or addClick a number, or +, in the taskbar pager

Switching workspaces cancels any drag in progress and refocuses the topmost window that is left.

Overview

Alt+O zooms out. The overview draws the entire virtual canvas scaled into the work area: each window becomes a coloured block with its title, the focused one in the accent colour, and the part of the canvas you are currently looking at is outlined.

Click a block to focus that window, re-centre the viewport on it and leave the overview. Esc or Alt+O again leaves without changing anything.

Keyboard

Window-manager shortcuts are Alt plus a single configurable key. Every one of them lives in the [wm] table, so any of them can be rebound:

DefaultAction[wm] key
Alt+WClose the focused windowclose
Alt+MMinimize / restoreminimize
Alt+TabCycle focuscycle
Alt+↑Maximize / restoremaximize
Alt+EnterNew shell windownew_window
Alt+OOverviewoverview
Alt+H Alt+J Alt+K Alt+LPan the viewportpan_leftpan_right
Alt+PAlways on topalways_on_top
Alt+1Alt+9Switch workspacefixed, not configurable

Ctrl+Q quits TDE entirely, from anywhere.

The Esc leader

Kiosk sessions, some SSH clients and most mobile keyboards swallow Alt before it ever reaches TDE. For those, esc_leader is on by default: press Esc, then the shortcut key within 220 ms, and TDE treats it exactly as if Alt had been held.

If the window expires with no follow-up key, the literal Esc is forwarded to the focused app, so nothing is lost — it just arrives a fifth of a second late. The timeout is configurable between 80 and 1000 ms.

The work area

The bottom two rows of the terminal are reserved for the taskbar and the status bar; everything above them is the work area that maximize and tiling fill. The Notch reserves no rows of its own — it is an overlay drawn inside the work area.