Configuration
vev reads ~/.config/vev/config ($XDG_CONFIG_HOME is respected).
- No file means defaults.
- Changes apply live within a couple of seconds.
- Exception:
web.listen and web.origin need a gateway restart. See browser terminal.
- Invalid values log a warning and fall back to the default.
The full list with defaults:
# Browser gateway: HTTP listener and browser-facing origin, read at startup.
web.listen = 127.0.0.1:8778
web.origin = http://127.0.0.1:8778
# Theme: auto follows the client; dark/light use neutral built-in defaults.
theme = auto
# In auto mode with palette inheritance enabled, infer a terminal accent.
theme.palette = on
# Accent policy: auto or one exact ANSI slot number from 0 through 15.
theme.accent = auto
# Palette placement: auto, center, top-left, top, top-right, left, right,
# bottom-left, bottom, or bottom-right.
palette.anchor = center
# One prewarmed floating terminal per tab. An empty command uses the normal shell.
floating.command =
floating.width = 80%
floating.height = 80%
# Let directional keyboard focus continue past a pane edge. Both default off.
nav.overflow-tabs = off
nav.overflow-sessions = off
# Show the focused pane's terminal title in tab labels; off keeps the process name only.
tabs.terminal-title = on
# Remove a numbered (ephemeral) session when its last client exits.
ephemeral.close-on-exit = on
# Use the kitty keyboard protocol when the terminal supports it (enables Ctrl+1..9).
keyboard.kitty-protocol = on
# Rebindable actions. Leave a line out to keep its built-in binding.
open-palette = alt+space
toggle-floating-pane = alt+f
jump-attention = alt+a
focus-pane-left = alt+h
focus-pane-right = alt+l
focus-pane-up = alt+k
focus-pane-down = alt+j
# Optional pane rearrangement actions are unbound by default.
# consume-or-expel-pane-left = alt+H
# consume-or-expel-pane-right = alt+L
# grow-pane-width, shrink-pane-width, grow-pane-height, shrink-pane-height,
# and equalize-panes are also unbound by default.
switch-tab-1 = alt+1
# ... through switch-tab-9 = alt+9
# Per-pane scrollback: decimal MB; zero disables history.
scrollback.megabytes = 50
# Optional additional line ceiling; zero means byte-only retention.
scrollback.lines = 10000
# Processes relaunched when a named session is restored. Empty disables relaunch.
snapshot.restore_processes = vi,vim,nvim,emacs,man,less,more,tail,top,htop,btop,claude,codex,pi,opencode
# Optional right bar anchors: commands run on the daemon host. Empty disables an anchor.
bar.top-right =
bar.bottom-right =
bar.interval = 5s
# Command palette codes: 2-3 letters or digits.
code.new-tab = CNT
code.new-session = CNS
code.create-ephemeral-session = CES
code.close-tab = CLT
code.split-right = SPR
code.split-left = SPL
code.split-up = SPU
code.split-down = SPD
code.consume-or-expel-pane-left = MPL
code.consume-or-expel-pane-right = MPR
code.stack-pane = STP
code.toggle-stack = TFS
code.close-pane = CFP
code.focus-pane-left = FPL
code.focus-pane-right = FPR
code.focus-pane-up = FPU
code.focus-pane-down = FPD
code.resize-pane = RSZ
code.grow-pane-width = GPW
code.shrink-pane-width = SPW
code.grow-pane-height = GPH
code.shrink-pane-height = SPH
code.equalize-panes = EQP
code.move-pane = MFP
code.move-tab = MAT
code.next-tab = NXT
code.previous-tab = PVT
code.back-session = BCK
code.jump-recent-session = JRS
code.session-picker = SSP
code.visual-mode = VIS
code.toggle-floating-pane = TFP
code.rename-session = RNS
code.rename-tab = RNT
code.detach = DET
code.notifications = NTC
code.yank-last-notification = YLN
| Key |
Range |
Default |
Zero means |
scrollback.megabytes |
0–4096 MB |
50 |
no history |
scrollback.lines |
0–1,000,000 |
10,000 |
no line limit, bytes only |
- Limits are per pane, including hidden floating panes.
- They count uncompressed history, not process memory.
- A reload applies to existing panes right away. Lowering a limit drops the oldest rows.
- Idle panes compress old history in the background. This saves memory but does not raise the limit.
Ephemeral sessions
With ephemeral.close-on-exit = on (default), a numbered session is removed once its last client is gone for good:
- The client process ends (terminal closed, SIGHUP, or SIGTERM). The client tells the daemon on a best-effort basis; if that message is lost, the rule below applies.
- A client that lost its connection does not reconnect before the resume window (15 minutes) expires.
The session stays while any other client is attached. A detach (keybinding, palette, or picker switch) keeps it, and so does a network drop within the resume window. Named sessions are never affected. Set off to keep numbered sessions until you kill them.
Closing the terminal of a client running inside SSH also sends SIGHUP, so a dropped SSH connection removes the session. Use a named session for work you want to resume.
Development environments
Set VEV_ENV=<name> to move every vev file into .dev/<name>/ under the current directory. Use it to test a build without touching your real sessions.
VEV_ENV=dev go run .
VEV_ENV=dev go run . kill --sessions
rm -rf .dev/dev
- Name: up to 64 letters, digits,
., _, or -, starting with a letter or digit.
- The same name shares one daemon. Use different names to run builds side by side.
- Config, sessions, hosts, snapshots, and logs are isolated.
- If the socket path gets too long, sockets move to
/tmp/vev-<uid>-<hash>. Everything else stays in .dev/<name>/.
- It is not a sandbox: pane processes see your real system.
Remote hosts
vev host add user@host # add a host
vev host rm user@host # remove it
vev host list # show hosts and their status
- The broker stores hosts in
~/.local/state/vev/broker/state/state.json.
- Hosts connect over SSH, so your SSH config (aliases, keys) applies.
- Remote sessions appear as
session@host in vev ls --all and in the picker.
Warm remote transports
After you leave a remote, vev keeps its connection open for a while. Going back is then instant: no new SSH login or QUIC handshake.
Configure this in ~/.config/vev/broker.json. The file is created on first use and read when the broker starts.
{
"marker": "vev.broker.offline/v1",
"registrations": [],
"warmTransports": 8,
"warmIdleTimeout": "off"
}
warmTransports: how many idle connections to keep (0–64, default 8). The oldest one closes first. 0 disables it.
warmIdleTimeout: close an idle connection after this long, such as 5m (max 24h). Default off: no time limit.
Warm connections never keep the broker running.
Logs and durable state
| What |
Where |
Logs (JSON lines, e.g. vev-daemon.log) |
~/.local/state/vev/ |
| Sessions and snapshots |
~/.local/state/vev/ |
| Broker hosts and logs |
~/.local/state/vev/broker/ |
| Socket and lock |
$XDG_RUNTIME_DIR/vev/ |
$XDG_STATE_HOME is respected. Set VEV_LOG=debug|warn|error to change the log level (default info).
If the daemon refuses to start because its session data is broken, do not edit the files. See durable session recovery.
Theme
| Setting |
Effect |
theme = auto |
Follow your terminal's colors and light/dark mode. |
theme = dark / light |
Neutral built-in colors. Ignores the two settings below. |
theme.palette = off |
Neutral colors, no accent. |
theme.accent = auto |
Pick an accent from your terminal's ANSI colors (blue if unsure). |
theme.accent = 0–15 |
Use exactly that ANSI color as the accent. |
- vev only colors its own UI (bars, borders, palette). Pane content is never recolored.
- Tinted backgrounds need a truecolor terminal. Otherwise the accent only colors text and borders.
- vev follows light/dark switches your terminal reports. It cannot see palette changes the terminal does not report.
Bindings
Valid keys: alt+<char>, alt+space, alt+left/right/up/down, alt+1 to alt+9.
- Setting an action replaces all its default keys. For example, setting
focus-pane-left removes Alt+Left too.
- Tab switching works with AZERTY and other layouts without extra config.
- Ctrl+1 to Ctrl+9 (recent sessions) are fixed and not rebindable. Turn them off with
keyboard.kitty-protocol = off.
alt+[ is not supported: terminals use it for escape sequences.
- Cmd/Super is not supported. Map it in your terminal to
ESC + a character, then bind alt+<char> in vev.
Pane consume or expel
Moves the focused pane between columns, like the Niri window manager. It has no default key: use palette codes MPL / MPR, or bind consume-or-expel-pane-left/right.
- A pane alone in its column joins the column next to it.
- A pane sharing a column leaves it and becomes its own column.
- Works only with column layouts. Nested mixed splits are not supported.
Navigation overflow
Both are off by default.
nav.overflow-tabs = on: Alt+h/l at the edge of the tab moves to the next tab.
nav.overflow-sessions = on: Alt+k/j at the edge moves to the next session (alphabetical).
No wrap-around. Only keyboard focus overflows, never the mouse or floating panes.
Copy mode
Scroll up with the mouse to enter. Scroll back to the bottom to leave.
| Key |
Action |
h j k l |
move |
w b e |
word motions |
v or Space |
start selection |
y or Enter |
copy |
With the mouse: drag to select, double-click to select a word.
# Unicode whitespace always separates words.
# The default is " -_@".
copy.word-separators = " -_@"
# Disable animated wheel scrolling (default: off).
copy.reduce-motion = off
copy.word-separators = "" uses only whitespace.
copy.reduce-motion = on scrolls three rows per wheel step, without animation.
Responsive overlays
Below 80 columns, popups (palette, picker, floating terminal, prompts) become full-width drawers at the bottom of the screen. The background dims while a popup is open.
Palette anchor
- Default: centered.
palette.anchor = auto: bottom bar from 80 to 95 columns, right-side rail from 96 columns.
- Any other value places it at that spot. Below 80 columns it is always a bottom drawer.
Floating terminal
floating.command runs through your shell. Changes apply on the next launch.
- Below 80 columns, the terminal takes the full width and keeps
floating.height.
- Floating terminals are not restored after a daemon restart.
Bar anchors
bar.top-right and bar.bottom-right show the output of a command in the bar. Both are off by default.
- The command runs on the daemon host every
bar.interval (minimum 1s), with the same environment as your panes.
- vev shows the first line of output, without colors. On failure it keeps the last good value.
- Scripts receive
VEV_ANCHOR, VEV_SESSION, VEV_TAB, VEV_PANE, VEV_PANE_CWD, VEV_COLS, and VEV_CLIENT_PID.
VEV_CLIENT_PID is the PID of a local attached client, so a script can find the terminal window and monitor showing the bar. With several clients attached, it is the one whose terminal has focus, else the first local one. It is empty when only remote clients (SSH or another machine) are attached, since their process lives elsewhere.
- Failures are logged with the exit code and stderr. Exit 127 means "command not found".
Release installs ship two example scripts: vev-bar-top-right and vev-bar-bottom-right. Under the NeferWL compositor, the first one also shows the client's monitor and workspaces (DP-2 [x][ ][ ]); set bar.interval = 1s to follow workspace changes. The second one runs git status on every refresh; raise the interval on large repositories.
source
1# Configuration
2
3vev reads `~/.config/vev/config` (`$XDG_CONFIG_HOME` is respected).
4
5- No file means defaults.
6- Changes apply live within a couple of seconds.
7- Exception: `web.listen` and `web.origin` need a gateway restart. See [browser terminal](web-terminal.md#listener-and-public-origin).
8- Invalid values log a warning and fall back to the default.
9
10The full list with defaults:
11
12```text
13# Browser gateway: HTTP listener and browser-facing origin, read at startup.
14web.listen = 127.0.0.1:8778
15web.origin = http://127.0.0.1:8778
16
17# Theme: auto follows the client; dark/light use neutral built-in defaults.
18theme = auto
19# In auto mode with palette inheritance enabled, infer a terminal accent.
20theme.palette = on
21# Accent policy: auto or one exact ANSI slot number from 0 through 15.
22theme.accent = auto
23
24# Palette placement: auto, center, top-left, top, top-right, left, right,
25# bottom-left, bottom, or bottom-right.
26palette.anchor = center
27
28# One prewarmed floating terminal per tab. An empty command uses the normal shell.
29floating.command =
30floating.width = 80%
31floating.height = 80%
32
33# Let directional keyboard focus continue past a pane edge. Both default off.
34nav.overflow-tabs = off
35nav.overflow-sessions = off
36
37# Show the focused pane's terminal title in tab labels; off keeps the process name only.
38tabs.terminal-title = on
39
40# Remove a numbered (ephemeral) session when its last client exits.
41ephemeral.close-on-exit = on
42
43# Use the kitty keyboard protocol when the terminal supports it (enables Ctrl+1..9).
44keyboard.kitty-protocol = on
45
46# Rebindable actions. Leave a line out to keep its built-in binding.
47open-palette = alt+space
48toggle-floating-pane = alt+f
49jump-attention = alt+a
50focus-pane-left = alt+h
51focus-pane-right = alt+l
52focus-pane-up = alt+k
53focus-pane-down = alt+j
54# Optional pane rearrangement actions are unbound by default.
55# consume-or-expel-pane-left = alt+H
56# consume-or-expel-pane-right = alt+L
57# grow-pane-width, shrink-pane-width, grow-pane-height, shrink-pane-height,
58# and equalize-panes are also unbound by default.
59switch-tab-1 = alt+1
60# ... through switch-tab-9 = alt+9
61
62# Per-pane scrollback: decimal MB; zero disables history.
63scrollback.megabytes = 50
64# Optional additional line ceiling; zero means byte-only retention.
65scrollback.lines = 10000
66
67# Processes relaunched when a named session is restored. Empty disables relaunch.
68snapshot.restore_processes = vi,vim,nvim,emacs,man,less,more,tail,top,htop,btop,claude,codex,pi,opencode
69
70# Optional right bar anchors: commands run on the daemon host. Empty disables an anchor.
71bar.top-right =
72bar.bottom-right =
73bar.interval = 5s
74
75# Command palette codes: 2-3 letters or digits.
76code.new-tab = CNT
77code.new-session = CNS
78code.create-ephemeral-session = CES
79code.close-tab = CLT
80code.split-right = SPR
81code.split-left = SPL
82code.split-up = SPU
83code.split-down = SPD
84code.consume-or-expel-pane-left = MPL
85code.consume-or-expel-pane-right = MPR
86code.stack-pane = STP
87code.toggle-stack = TFS
88code.close-pane = CFP
89code.focus-pane-left = FPL
90code.focus-pane-right = FPR
91code.focus-pane-up = FPU
92code.focus-pane-down = FPD
93code.resize-pane = RSZ
94code.grow-pane-width = GPW
95code.shrink-pane-width = SPW
96code.grow-pane-height = GPH
97code.shrink-pane-height = SPH
98code.equalize-panes = EQP
99code.move-pane = MFP
100code.move-tab = MAT
101code.next-tab = NXT
102code.previous-tab = PVT
103code.back-session = BCK
104code.jump-recent-session = JRS
105code.session-picker = SSP
106code.visual-mode = VIS
107code.toggle-floating-pane = TFP
108code.rename-session = RNS
109code.rename-tab = RNT
110code.detach = DET
111code.notifications = NTC
112code.yank-last-notification = YLN
113```
114
115## Scrollback
116
117| Key | Range | Default | Zero means |
118|---|---|---|---|
119| `scrollback.megabytes` | 0–4096 MB | 50 | no history |
120| `scrollback.lines` | 0–1,000,000 | 10,000 | no line limit, bytes only |
121
122- Limits are per pane, including hidden floating panes.
123- They count uncompressed history, not process memory.
124- A reload applies to existing panes right away. Lowering a limit drops the oldest rows.
125- Idle panes compress old history in the background. This saves memory but does not raise the limit.
126
127## Ephemeral sessions
128
129With `ephemeral.close-on-exit = on` (default), a numbered session is removed once its last client is gone for good:
130
131- The client process ends (terminal closed, SIGHUP, or SIGTERM). The client tells the daemon on a best-effort basis; if that message is lost, the rule below applies.
132- A client that lost its connection does not reconnect before the resume window (15 minutes) expires.
133
134The session stays while any other client is attached. A detach (keybinding, palette, or picker switch) keeps it, and so does a network drop within the resume window. Named sessions are never affected. Set `off` to keep numbered sessions until you kill them.
135
136Closing the terminal of a client running inside SSH also sends SIGHUP, so a dropped SSH connection removes the session. Use a named session for work you want to resume.
137
138## Development environments
139
140Set `VEV_ENV=<name>` to move every vev file into `.dev/<name>/` under the current directory. Use it to test a build without touching your real sessions.
141
142```sh
143VEV_ENV=dev go run .
144VEV_ENV=dev go run . kill --sessions
145rm -rf .dev/dev
146```
147
148- Name: up to 64 letters, digits, `.`, `_`, or `-`, starting with a letter or digit.
149- The same name shares one daemon. Use different names to run builds side by side.
150- Config, sessions, hosts, snapshots, and logs are isolated.
151- If the socket path gets too long, sockets move to `/tmp/vev-<uid>-<hash>`. Everything else stays in `.dev/<name>/`.
152- It is not a sandbox: pane processes see your real system.
153
154## Remote hosts
155
156```sh
157vev host add user@host # add a host
158vev host rm user@host # remove it
159vev host list # show hosts and their status
160```
161
162- The broker stores hosts in `~/.local/state/vev/broker/state/state.json`.
163- Hosts connect over SSH, so your SSH config (aliases, keys) applies.
164- Remote sessions appear as `session@host` in `vev ls --all` and in the picker.
165
166### Warm remote transports
167
168After you leave a remote, vev keeps its connection open for a while. Going back is then instant: no new SSH login or QUIC handshake.
169
170Configure this in `~/.config/vev/broker.json`. The file is created on first use and read when the broker starts.
171
172```json
173{
174 "marker": "vev.broker.offline/v1",
175 "registrations": [],
176 "warmTransports": 8,
177 "warmIdleTimeout": "off"
178}
179```
180
181- `warmTransports`: how many idle connections to keep (0–64, default 8). The oldest one closes first. `0` disables it.
182- `warmIdleTimeout`: close an idle connection after this long, such as `5m` (max `24h`). Default `off`: no time limit.
183
184Warm connections never keep the broker running.
185
186## Logs and durable state
187
188| What | Where |
189|---|---|
190| Logs (JSON lines, e.g. `vev-daemon.log`) | `~/.local/state/vev/` |
191| Sessions and snapshots | `~/.local/state/vev/` |
192| Broker hosts and logs | `~/.local/state/vev/broker/` |
193| Socket and lock | `$XDG_RUNTIME_DIR/vev/` |
194
195`$XDG_STATE_HOME` is respected. Set `VEV_LOG=debug|warn|error` to change the log level (default `info`).
196
197If the daemon refuses to start because its session data is broken, do not edit the files. See [durable session recovery](durable-session-recovery.md).
198
199## Theme
200
201| Setting | Effect |
202|---|---|
203| `theme = auto` | Follow your terminal's colors and light/dark mode. |
204| `theme = dark` / `light` | Neutral built-in colors. Ignores the two settings below. |
205| `theme.palette = off` | Neutral colors, no accent. |
206| `theme.accent = auto` | Pick an accent from your terminal's ANSI colors (blue if unsure). |
207| `theme.accent = 0`–`15` | Use exactly that ANSI color as the accent. |
208
209- vev only colors its own UI (bars, borders, palette). Pane content is never recolored.
210- Tinted backgrounds need a truecolor terminal. Otherwise the accent only colors text and borders.
211- vev follows light/dark switches your terminal reports. It cannot see palette changes the terminal does not report.
212
213## Bindings
214
215Valid keys: `alt+<char>`, `alt+space`, `alt+left/right/up/down`, `alt+1` to `alt+9`.
216
217- Setting an action replaces all its default keys. For example, setting `focus-pane-left` removes Alt+Left too.
218- Tab switching works with AZERTY and other layouts without extra config.
219- Ctrl+1 to Ctrl+9 (recent sessions) are fixed and not rebindable. Turn them off with `keyboard.kitty-protocol = off`.
220- `alt+[` is not supported: terminals use it for escape sequences.
221- Cmd/Super is not supported. Map it in your terminal to `ESC` + a character, then bind `alt+<char>` in vev.
222
223## Pane consume or expel
224
225Moves the focused pane between columns, like the Niri window manager. It has no default key: use palette codes `MPL` / `MPR`, or bind `consume-or-expel-pane-left/right`.
226
227- A pane alone in its column joins the column next to it.
228- A pane sharing a column leaves it and becomes its own column.
229- Works only with column layouts. Nested mixed splits are not supported.
230
231## Navigation overflow
232
233Both are `off` by default.
234
235- `nav.overflow-tabs = on`: Alt+h/l at the edge of the tab moves to the next tab.
236- `nav.overflow-sessions = on`: Alt+k/j at the edge moves to the next session (alphabetical).
237
238No wrap-around. Only keyboard focus overflows, never the mouse or floating panes.
239
240## Copy mode
241
242Scroll up with the mouse to enter. Scroll back to the bottom to leave.
243
244| Key | Action |
245|---|---|
246| `h` `j` `k` `l` | move |
247| `w` `b` `e` | word motions |
248| `v` or Space | start selection |
249| `y` or Enter | copy |
250
251With the mouse: drag to select, double-click to select a word.
252
253```ini
254# Unicode whitespace always separates words.
255# The default is " -_@".
256copy.word-separators = " -_@"
257# Disable animated wheel scrolling (default: off).
258copy.reduce-motion = off
259```
260
261- `copy.word-separators = ""` uses only whitespace.
262- `copy.reduce-motion = on` scrolls three rows per wheel step, without animation.
263
264## Responsive overlays
265
266Below 80 columns, popups (palette, picker, floating terminal, prompts) become full-width drawers at the bottom of the screen. The background dims while a popup is open.
267
268## Palette anchor
269
270- Default: centered.
271- `palette.anchor = auto`: bottom bar from 80 to 95 columns, right-side rail from 96 columns.
272- Any other value places it at that spot. Below 80 columns it is always a bottom drawer.
273
274## Floating terminal
275
276- `floating.command` runs through your shell. Changes apply on the next launch.
277- Below 80 columns, the terminal takes the full width and keeps `floating.height`.
278- Floating terminals are not restored after a daemon restart.
279
280## Bar anchors
281
282`bar.top-right` and `bar.bottom-right` show the output of a command in the bar. Both are off by default.
283
284- The command runs on the daemon host every `bar.interval` (minimum `1s`), with the same environment as your panes.
285- vev shows the first line of output, without colors. On failure it keeps the last good value.
286- Scripts receive `VEV_ANCHOR`, `VEV_SESSION`, `VEV_TAB`, `VEV_PANE`, `VEV_PANE_CWD`, `VEV_COLS`, and `VEV_CLIENT_PID`.
287- `VEV_CLIENT_PID` is the PID of a local attached client, so a script can find the terminal window and monitor showing the bar. With several clients attached, it is the one whose terminal has focus, else the first local one. It is empty when only remote clients (SSH or another machine) are attached, since their process lives elsewhere.
288- Failures are logged with the exit code and stderr. Exit 127 means "command not found".
289
290Release installs ship two example scripts: `vev-bar-top-right` and `vev-bar-bottom-right`. Under the NeferWL compositor, the first one also shows the client's monitor and workspaces (`DP-2 [x][ ][ ]`); set `bar.interval = 1s` to follow workspace changes. The second one runs `git status` on every refresh; raise the interval on large repositories.