Configuration
On this page
- The file
config_version[font][text][cursor][window][interface][slots][terminal][scrollback][keyboard][clipboard][links][bell][notifications][agents][sessions][theme][app][updates][debug][keys][triggers.<name>][plugins.<namespace>][plugins.tabs][plugins.splits][plugins.quick-terminal][plugins.search][plugins.command-header][plugins.blocks][plugins.quick-tips][plugins.links]
Lokyr reads its settings from one TOML file. This guide lists every key that the file can hold: what it does, the values it takes and its default.
Every key and every section can be left out, and then takes its default: an empty file, or no file at all, gives Lokyr as it ships.
Under each key's name, a small line tells the platforms where the key applies: macOS alone for now, as Lokyr's first version runs on macOS. As Lokyr comes to other systems, the line names them, and a key that one system alone has says so.
The file
-
Where it is:
~/.config/lokyr/config.toml, on macOS too, so that it can live with your dotfiles. WhenXDG_CONFIG_HOMEis set to an absolute path, the file is$XDG_CONFIG_HOME/lokyr/config.tomlinstead.- A variable that your shell's startup files set, such as
XDG_CONFIG_HOMEin~/.zshrc, reaches Lokyr only when you start it from that shell: started from the Finder or the Dock, Lokyr reads~/.config/lokyr/config.toml. - When the file's directory does not exist, Lokyr makes it, empty, as it starts, so that a config that you write there later applies at once.
- A variable that your shell's startup files set, such as
-
Seeing it: Lokyr › Open Settings Window shows every key, by its section, the plugins' too, of what it does and its value in force.
-
Opening it: Lokyr › Settings… (⌘,) opens the file in your text editor, the application that opens plain text, as TextEdit or the one that you chose in the Finder. When there is no file, it makes one first: every key, commented out with its default and its text, under its section, so that you take a key's
#away to change it, and the others keep the defaults to come. A key without a default shows an example of its value, asfamily = "Menlo", and[keys]each default binding, a line a key, under what it does. In an editor that changes the quotes that you type, as TextEdit's Edit › Substitutions › Smart Quotes does, turn that off: TOML takes straight quotes alone. When the file cannot be made, as in a folder that you cannot write, or no editor opens it, an alert tells why. -
Links: the file, or its directory, can be a symbolic link, as dotfiles managers such as GNU Stow make it. Lokyr watches the file the link points to as well, and follows a link that is pointed elsewhere: the edits of its new target apply too. A target that goes, as a checkout of the dotfiles removes and writes it, applies again as it comes back; while it is gone, the defaults apply.
-
Reloading: Lokyr applies the file as soon as you save it, without a restart. Saving from vim, which writes another file and renames it over the config, works as well as saving from any other editor. Removing the file, or its directory, brings the defaults back.
-
Texts: a name, as a font's family, a theme's or a plugin's, takes 256 characters at most, a path or an address 1024, and
term64; a longer one is an error, at its line. -
All or nothing: a file applies whole, or not at all. When it has an error, none of its values apply, and the settings in force stay as they were. At startup, an invalid file gives the defaults. A plugin's section, which its plugin checks, applies on its own, as
[plugins.<namespace>]says. -
Errors: an error tells the file, the line and the column, and what is wrong. For a key that Lokyr does not know, it names the nearest key that it knows:
lokyr: error 109 (usage): /Users/you/.config/lokyr/config.toml:3:1: unknown key `sise` in `[font]`; did you mean `size`?; none of the config applies, and the one in force staysThe error shows in a card at the top right of every window's panes, its title and its text in two lines, the rest of it copied whole by the card's Copy button, until you save a file that reads, or click its ×; it goes to the log too: the terminal that started Lokyr, when you start it from one, or else, as from the Finder or the Dock, the file
~/Library/Logs/Lokyr/lokyr.log, which the Console app shows. A font family that is not installed shows in the card the same way, until the file names one that is. A failure of a command or of a plugin shows in the card too, which goes by itself after eight seconds, unless the pointer rests on it. -
Every key at once:
lokyr +show-configprints the config with every key: the file's values, and the defaults of the keys that it leaves out.--defaultprints the defaults alone, as an empty file gives them, and--docsputs the text of this guide over each key: what it does, its values and its default.- What it prints is a config file, which reads back as the same settings. A key whose default no value can write, as
family's, which is the system's font, shows as a comment. - A file with an error prints nothing but the error.
-
The fonts:
lokyr +list-fontslists the font families that macOS has, by the names thatfamilytakes, in the order of their names; it marks the monospaced families, the default one and the config's.--styleslists each family's styles under it, by the names thatstyletakes;--monospacelists the monospaced families alone; and--family <name>one family, with its styles, by its name or a name of some of its faces, asfamilytakes it, where a name of no family installed exits with 1.- It draws nothing, so that it runs in any terminal and in a pipe, as
lokyr +list-fonts --monospace | less.
-
Checking a file:
lokyr +validate-configchecks the config file, or the one that you name, aslokyr +validate-config ~/dotfiles/lokyr.toml, as Lokyr takes it, without applying it: its font's styles too.- It exits with 0 when Lokyr takes the file, and with 1 and the error, at its line and column, when it does not. A family that is not installed, or a language or an icon that Lokyr lacks, only warns, as Lokyr takes the file with its default in their place.
- Without a config file, the defaults apply, and the check passes; a file that you name must exist.
- In the app's bundle, the command is
Lokyr.app/Contents/MacOS/lokyr. Lokyr's panes have its directory at the end of theirPATH, so thatlokyr +validate-configruns there as it is, after alokyrof your own, as Homebrew's; elsewhere, name it whole, as/Applications/Lokyr.app/Contents/MacOS/lokyr +validate-config.
A complete example
Every key that Lokyr reads, with the values that it takes in the comment. Most show a value other than their default; a few show theirs, such as cell-width, antialias and padding-y:
config_version = 1
[font]
family = "CaskaydiaCove NFM" # a family as Font Book shows it; SF Mono by default
size = 22 # points, from 4 to 200
style = "SemiBold" # the face of plain text, by the font's name for it
bold-style = "Bold" # the faces of bold, italic and bold italic text
italic-style = "Italic"
bold-italic-style = "Bold Italic"
non-ascii-family = "Hiragino Sans" # the family of the text past ASCII
line-height = 1.1 # factors of the cell, from 0.5 to 3
cell-width = 1.0
ligatures = false # true | false
builtin-box-drawing = false # true | false: box drawing, blocks and braille
builtin-powerline = false # true | false: the powerline symbols
antialias = true # true | false
thin-strokes = "retina-dark" # never | always | retina | dark | retina-dark
system-weight = true # true | false: the text of the weight of macOS's
[text]
bold = false # true | false: bold text in the bold face
italic = false # true | false: italic text in the italic face
ansi-colors = false # true | false: the colors that programs set
bold-is-bright = true # true | false: bold text of the first eight colors in their bright ones
blink = false # true | false: text that programs make blink
faint-opacity = 0.6 # 0.1 to 1: faint text's opacity over its background
[cursor]
shape = "bar" # block | bar | underline | hollow
blink = false # true | false
thickness = 2 # points, from 0.5 to 20
length = 0.6 # a bar's height, an underline's width, from 0.1 to 1
blink-interval = 600 # ms on, then off, from 100 to 5000
blink-timeout = 30 # seconds after a key or output; 0 never stops
smooth-blink = "custom" # off | breathing | linear | fast | slow | subtle | custom
fade-in = 300 # with "custom": ms, from 0 to 10000
fade-out = 400
fade-in-curve = "ease-out" # linear | ease-in | ease-out | ease-in-out
fade-out-curve = "ease-in"
visible = 700 # ms held visible, from 0 to 10000
hidden = 200 # ms held hidden
movement = "snappy" # instant | snappy: how it moves to a new cell
guide = true # true | false: a band across the cursor's row
hdr = true # true | false: a cursor brighter than white, on an XDR display
hdr-brightness = 3.0 # 1 to 4: how much brighter than white, with hdr
click-to-move = true # true | false: a click in the command line moves the shell's cursor
[window]
columns = 120 # a new window's size, in cells, from 1 to 1000
rows = 40
remember-frame = false # true | false: the first window where the last one was
close-on-exit = "never" # clean | always | never
start-directory = "last" # home | last | a path: the first window's folder
new-directory = "~/Projects" # inherit | home | a path: a new window's folder
padding-x = 6 # points, from 0 to 100
padding-y = 4
gutter = false # true | false: the commands' marks at the panes' left
scrollbar = "always" # system | always | never: the panes' scroll bars
smooth-scroll = true # true | false: scroll by pixels
background-opacity = 0.9 # from 0 to 1
background-blur = 20 # points, from 0 to 100
title-size = false # true | false: the grid's size in the title
title-shortcut = false # true | false: ⌥⌘1 at the titlebar's right
opaque-titlebar = true # true | false: the titlebar opaque over a translucent window
[interface]
font-family = "Helvetica Neue" # the system's interface font when absent
font-size = 14 # points, from 4 to 200
[slots]
tab-bar = "lokyr/tabs" # the plugin whose tab bar shows; the first that has one when absent
pane-header = "lokyr/command-header" # the plugin whose panes' headers show; likewise
[terminal]
term = "xterm-lokyr" # the TERM that programs see
unicode-widths = "8" # current | 8: the width tables
ambiguous-width = 2 # 1 | 2: the cells of an ambiguous character
normalization = "nfc" # none | nfc | nfd | hfs+
shell-integration = false # true | false: the shell tells its prompts and its folder
image-memory = 128 # MiB of a pane's inline images, 0 showing none
[scrollback]
scroll-on-output = true # true | false: output brings the view back down
limit = 20 # MiB of a window's scrollback, from 1 to 16384
budget = 200 # MiB that the windows' scrollbacks share
[keyboard]
option-as-meta = "left" # none | left | right | both
[clipboard]
read = "ask" # never | ask: a program's read of the clipboard
confirm-paste = "always" # auto | always | never: a paste with line breaks asks first
copy-on-select = true # a selection by the mouse copies its text as it ends
[links]
urls = "open" # ask | open: a URL that ⌘-click opens
files = "reveal" # ask | open | reveal: a file that ⌘-click opens
search-engine = "duckduckgo" # google | duckduckgo | bing | ecosia | kagi | startpage, or a URL of {query}
editor = "vscode" # system | vscode | cursor | zed | sublime | …: a file's line that ⌘-click opens
[bell]
sound = true # true | false: the system's alert sound
flash = false # true | false: a flash of the window that has the focus
bounce = false # true | false: the Dock's icon, for a window in the background
mark-title = false # true | false: 🔔 in its title until it takes the focus
[notifications]
long-command = 30 # seconds, from 1 to 86400, or 0 for none: a notification as a command this long ends
[agents]
programs = [ # the agents' programs, by the names that they go by
"claude", "codex", "gemini", "opencode", "aider", "cursor-agent",
"copilot", "amp", "goose", "qwen", "crush", "droid",
]
done-after = 3 # seconds, 0.5 to 60, without work before an agent asked something is done
notify = true # true | false: a notification as an agent waits for you or is done
dock-badge = true # true | false: the Dock's icon counts the agents that wait for you
[sessions]
folders = ["~/src/*", "~/.config"] # the folders that the sessions' switcher lists
[theme]
light = "Lokyr Light" # the light appearance's theme, a file of themes/, held or built in
dark = "Nightfall" # the dark appearance's theme
minimum-contrast = 3.0 # 1 to 21: the least contrast of the terminal's text
[app]
icon = "laguz" # jormungandr | jormungandr-sticker | laguz
language = "it" # system | en | it
appearance = "dark" # system | light | dark
quit-after-last-window-closed = true # true | false: Lokyr quits as its last window closes
restore-windows = "always" # system | always | never: the windows open again as Lokyr starts
restore-scrollback = true # true | false: the panes show again what they showed as Lokyr quit
[updates]
check = false # true | false: a check for a newer version, once a day at most
[debug]
performance-overlay = true # true | false: a panel of the performance over each window
performance-corner = "bottom-right" # top-right | top-left | bottom-right | bottom-left
[keys]
"cmd+shift+n" = "window.new" # keys, and the command that they run
"ctrl+a>n" = { command = "window.new", when = "!alternate-screen" }
"cmd+q" = false # takes the binding away; the menu's Command-Q stays, for now
"alt+backspace" = { command = "pane.send-text", args = { text = "\u0017" } } # sends Control-W
"global:ctrl+`" = "window.toggle-quick-terminal" # from every app: the quick terminal
# A compiler's errors, highlighted:
[triggers.errors]
pattern = 'error(\[E\d+\])?:' # a regex: each line that completes is matched against it
action = "highlight" # highlight | notify | mark | command
case = "smart" # smart | sensitive | insensitive
enabled = true # true | false
color = "trigger.highlight" # of highlight: a theme's token, or "#rrggbb"
# A build's end, told in a notification:
[triggers.built]
pattern = '^\s*Finished .* in (\S+)'
action = "notify"
title = "Built in $1" # of notify: its title, $1 the match's first group
# A test that failed, marked in the gutter:
[triggers.failures]
pattern = '^test .* FAILED$'
action = "mark"
# A command of the palette's, run at each match:
[triggers.agent]
pattern = 'Do you want to proceed\?'
action = "command"
command = "window.next-agent" # of command: the command that it runs
args = {} # of command: its arguments
enabled = false
# A plugin's own keys, in a section of its namespace, as its schema has them;
# `enabled` turns any plugin off:
# [plugins.<namespace>]
# enabled = false # true | false: the plugin runs
# key = "value"
[plugins.tabs]
position = "top" # top | bottom | left | right: where the tab bar goes
style = "unified" # standard | unified | seamless: the bar's look
hide-when-single = true # true | false: no bar for a single tab
show-index = true # true | false: ⌘1 to ⌘9 on the first nine tabs
close-button = "hover" # always | hover | never: a tab's close button
column-width = 200 # points, 60 to 600: the bar's column on the left or the right
control-tab = "recent" # recent | order: what Control-Tab steps through
reopen-seconds = 10 # 0 to 86400: seconds a closed tab stays ready to reopen
[plugins.splits]
look = "cards" # cards | plain: each pane a card, or edge to edge
icons = { lazydocker = "kubernetes" } # a program's name, and its icon in the cards' headers
dim-inactive = 0.15 # 0 to 1: how much the panes without the keyboard fade
pane-titles = false # true | false: each pane's title across its top
focus-follows-mouse = false # true | false: the keyboard goes to the pane under the pointer
[plugins.quick-terminal]
position = "bottom" # top | bottom | left | right | center
size = "40%,80%" # into the screen, then along the edge: 1% to 100%, or points as "300px"
screen = "mouse" # main | mouse | menu-bar
animation = 150 # ms, from 0 to 2000
autohide = false # true | false: hides as it loses the focus
double-tap = "ctrl" # none | ctrl | alt | cmd | shift
spaces = "remain" # move | remain
[plugins.search]
case = "smart" # smart | insensitive: whether case counts while the bar's case toggle is off
highlight-all = true # true | false: every match that shows highlighted
wrap-around = true # true | false: a step past the last match goes on from the first
[plugins.command-header]
background = "panel.bg" # the theme's token of the pill's background, by its name
text = "text" # the theme's token of its text
border = "panel.border" # the theme's token of its border, as "accent"
line = "panel.border" # the theme's token of the line across the pane
hover = "button.hover.bg" # the theme's token over its background under the pointer
font-size = 0 # points, 0 to 200, of the terminal's font; 0 for its own size
font-weight = "regular" # light | regular | medium | semibold | bold | heavy
padding-x = 8 # points, 0 to 40, left and right of the text
padding-y = 1 # points, 0 to 20, above and below it
align = "left" # left | center | right: where its pill sits along the line
max-length = 80 # characters, 1 to 1000, of the line, cut of … beyond them
[plugins.blocks]
header = "pill" # rows | pill: the prompt's rows pinned, or a pill of the command line
header-while-running = "always" # auto | always | never: the prompt rows while a command runs
dividers = true # true | false
failed-tint = true # true | false
spacing = true # true | false
background = "panel.bg" # the theme's token of the pill's background, by its name
text = "text" # the theme's token of its text
border = "panel.border" # the theme's token of its border, as "accent"
line = "panel.border" # the theme's token of the line across the pane
hover = "button.hover.bg" # the theme's token over its background under the pointer
font-size = 0 # points, 0 to 200, of the terminal's font; 0 for its own size
font-weight = "regular" # light | regular | medium | semibold | bold | heavy
padding-x = 8 # points, 0 to 40, left and right of the text
padding-y = 1 # points, 0 to 20, above and below it
align = "left" # left | center | right: where its pill sits along the line
max-length = 80 # characters, 1 to 1000, of the line, cut of … beyond them
[plugins.quick-tips]
every = 7 # days, 0 to 365, between two tips as Lokyr starts; 0 for every start
[plugins.links]
alphabet = "asdfghjklqwertyuiopzxcvbnm" # the letters of the hints' labels, nearest first
hints = { tickets = { pattern = 'PROJ-\d+', url = "https://jira.example.com/browse/$0" } } # your tracker's ticket numbers, each to its page
config_version
Platforms: macOS
The version of the file's format. Lokyr reads version 1, and refuses any other.
| Value | Default |
|---|---|
1 | 1 |
The key is the only one at the top of the file, and the only one with an underscore: the keys of the sections are written with hyphens.
[font]
The font of the text: its family, its size and the faces that bold and italic text take.
A character that the font lacks, such as Japanese text, takes the font that macOS gives for it, as other apps take it: Hiragino for Japanese. A symbol takes the form that Unicode gives it:
- Emoji, such as ⚡, ☕ or 🦀, take Apple Color Emoji, in their own colors, even when the font has a plain form of them.
- Symbols that have an emoji too, such as ✔, ⚠, ℹ or ❤, stay text: the font's, or another font's that has them as text, in the color that the program gives them.
- A variation selector after the character chooses otherwise: U+FE0F asks for the emoji, as in ❤️, and U+FE0E for the text, as in ⚡︎. A symbol that no font has in the form asked takes the other.
- Icons of the Nerd Fonts, which prompts and tools such as
eza --iconsshow, take the font's own when it is a Nerd Font, and otherwise Symbols Nerd Font Mono, which Lokyr includes, so that they show with any font, a Nerd Font installed or not. Its icons are drawn smaller where they would be wider than their cell, in its middle, so that they leave the next cell alone.
family
Platforms: macOS
The font family, by its name, as Font Book shows it on macOS, such as "Menlo" or "CaskaydiaCove NFM".
- Default: the system's monospaced font, SF Mono.
- The case does not matter:
"menlo"is Menlo. "SF Mono"names the system's monospaced font, which macOS installs under another name.- A name that some faces of a family give themselves, as a font and its weight, such as
"CaskaydiaCove NFM SemiBold", names the whole family, and takes those faces as the regular text's. - A family that is not installed gives the default one, and the notice's card tells it, as the log does. The styles that the file names then do not apply, as they are the missing family's.
lokyr +list-fontslists the families that are installed, and--monospacethose that are monospaced.
size
Platforms: macOS
The size of the text, in points.
| Values | Default |
|---|---|
from 4 to 200, whole or not | 13 |
The size is in points, so that the text takes the same room on a Retina display, at twice the pixels, as on another.
style
Platforms: macOS
The face of the text that has no style, by the name that the font gives it, such as "SemiBold" or "Light".
- Default: the family's regular face: its upright face nearest to the regular weight, of the normal width when the family has several, such as Condensed faces too. A face whose font tells no width takes the one that its name tells, as Condensed or Narrow. Of faces that still tie, as Hoefler Text's Regular and Ornaments, the one that macOS gives for the family alone.
- The case, spaces, hyphens and underscores do not matter:
"semi-bold"isSemiBold. - A style that the family does not have is an error, which lists the styles that it has, as
lokyr +list-fonts --family <name>does.
bold-style, italic-style, bold-italic-style
Platforms: macOS
The faces of bold, italic and bold italic text, named as style names its face.
- Default of
bold-style: the family's upright face heavier than the regular one, nearest to Bold's weight, or one step past the regular one's: Regular takes Bold, SemiBold takes Bold, and Bold takes ExtraBold. A family without one draws its regular face heavier. - Default of
italic-style: the family's italic face nearest to the regular one's weight. A family without italics slants its regular face. - Default of
bold-italic-style: the family's italic face nearest to the bold one's weight. A family without one slants its bold face, or draws its italic one heavier. - The three take faces of the regular one's width. An italic is a true italic rather than an oblique when the family has both. A family of italics alone takes its heavier italic as bold. Of two faces as near to a weight, the heavier is taken for Bold's and the lighter for the regular one's, whatever order macOS lists them in.
non-ascii-family
Platforms: macOS
The family of every character past ASCII, such as "Hiragino Sans" for Japanese text.
- Default: the text's own family.
- Its faces follow the weights of the text's: bold text takes its bold face. The styles that
styleand the other keys name are the text's family's, not this one's. - A character that this family lacks takes the text's own family, then, for an icon of the private use areas, Symbols Nerd Font Mono, which Lokyr holds, and then the font that macOS gives for it: the icons of a Nerd Font, such as those of a shell's prompt, stay the font's.
- A family that is not installed leaves that text to the text's family, and the notice's card tells it, as the log does.
line-height, cell-width
Platforms: macOS
The height and the width of the grid's cells, as factors of the face's line height and of its characters' advance.
| Values | Default |
|---|---|
from 0.5 to 3 | 1 |
A factor below one makes a closer grid, and can make a cell smaller than the glyphs of the face, which then overlap their neighbours' cells, or are cut where the window ends; a factor above one leaves room around them.
ligatures
Platforms: macOS
Whether the glyphs that a font joins into ligatures, such as -> or !=, are joined.
| Values | Default |
|---|---|
true, false | true |
- Programming fonts that have ligatures, such as Cascadia Code or Fira Code, join
->,=>,!=or===into one drawing, each keeping the cells of its characters. - The cell under the cursor shows its own character, so that a ligature splits where you edit it.
falseturns off the font's ligatures, its contextual alternates too, which some fonts use for them.- Emoji sequences are drawn whole either way: a family joined by ZWJ, a flag, a keycap such as 1️⃣, or a skin tone.
builtin-box-drawing, builtin-powerline
Platforms: macOS
Whether Lokyr draws these characters itself, at the cell's size and to the pixel, rather than taking them from the font:
builtin-box-drawing: the box drawing characters, such as─ │ ┌ ╋ ║ ╭, the block elements, such as▀ ▄ █ ░, and braille, such as⣿;builtin-powerline: the powerline symbols, U+E0B0 to U+E0BF, the arrows, half circles and triangles between the segments of a prompt.
| Values | Default |
|---|---|
true, false | true |
- Drawn by Lokyr, lines meet across cells without a gap, blocks tile, and the powerline symbols fill the cell's height, whatever the font and
line-height. falsetakes the font's glyphs, and, for the powerline symbols that the font lacks, Lokyr's own, so that they fill the cell still; box drawing that the font lacks comes from another font of the system's. Some fonts draw their own as a look of their own.- The other icons of Nerd Fonts come from the font, or from Symbols Nerd Font Mono where the font lacks them.
antialias
Platforms: macOS
Whether the edges of the glyphs are smoothed, as macOS draws text.
| Values | Default |
|---|---|
true, false | true |
falsedraws each pixel covered or not, as on old screens: crisp at small sizes on a display of a scale of 1, jagged otherwise. The glyphs that Lokyr draws itself follow it, and the shades, ░, ▒ and ▓, become patterns of a quarter, a half and three quarters of their pixels; emoji keep their smooth edges.thin-strokesneeds antialiasing, and does nothing without it.
thin-strokes
Platforms: macOS
Where the text is drawn of thinner strokes: without the darkening that macOS adds to the glyphs as it smooths fonts, which makes light text on a dark background look heavier.
| Values | Default |
|---|---|
"never", "always", "retina", "dark", "retina-dark" | "never" |
"never"draws the text as macOS does;"always"thin everywhere."retina"thin on a display of a scale of 2 or more, as the Mac's own;"dark"thin where a cell's background is darker than its text;"retina-dark"thin where both hold.- When font smoothing is off in macOS, as
defaults write -g AppleFontSmoothing -int 0turns it off, every glyph is thin already.
system-weight
Platforms: macOS
Whether the text takes the weight of the text of macOS's own apps, as Lokyr's tabs and panels do.
| Values | Default |
|---|---|
true, false | false |
truedraws dark text on a light background thinner, as macOS draws it: by a quarter at a scale of 1, by a sixth at 2. Light text on a dark background stays nearly as it is.falsedraws the glyphs' edges as the font gives them, as before, which makes dark text on a light background look heavier than macOS's.- It costs nothing measurable, on the GPU or on the CPU.
- It takes
thin-strokesalong: the darkening that macOS adds as it smooths fonts stays, or goes, as that key says. A thin glyph, or every glyph when font smoothing is off in macOS, stays as drawn, as macOS's own text then does. - The texts that Lokyr draws in the terminal's font, as the notices across the windows' top, the size shown as a window resizes and the performance's panel, follow it too.
[text]
How the text's styles and colors are drawn.
bold, italic
Platforms: macOS
Whether bold text takes the font's bold face, and italic text its italic face.
| Values | Default |
|---|---|
true, false | true |
bold = falsedraws bold text in the regular face: a program's bold then shows only by its color.italic = falsedraws italic text upright.
ansi-colors
Platforms: macOS
Whether the colors that programs give the text and its background show.
| Values | Default |
|---|---|
true, false | true |
falsedraws all the text in the default colors, the theme's: the sixteen colors of the palette, the 256 and the RGB ones that programs set, for the text and its background, take the default text's and background's. An underline's own color, which programs set with SGR 58, as Neovim does for its diagnostics, takes the text's.- Inverse text still swaps its colors, and the selection and the cursor keep theirs.
bold-is-bright
Platforms: macOS
Whether bold text in one of the palette's first eight colors takes its bright color, of the eight after: bold red as bright red.
| Values | Default |
|---|---|
true, false | false |
- Most programs choose their bright colors themselves, so that the default leaves bold text in its own color; some older ones mean bold to brighten it.
- Bold text still takes the bold face, as
boldsays.
blink
Platforms: macOS
Whether text that programs make blink, with the escape sequences SGR 5 and 6, blinks.
| Values | Default |
|---|---|
true, false | true |
- The text blinks on the cursor's clock: shown and hidden for
blink-intervaleach, half a second by default, switched even when the cursor fades, and only in the window that has the focus. - It stops blinking, and stays shown,
blink-timeoutafter the last key or output, 15 seconds by default, as the cursor stops. falseshows it steadily.- macOS's window server blinks it, on a layer of its own over the rows that hold it, which wakes Lokyr no more than steady text does. The layer takes some memory of the GPU's while blinking text shows, as much as a few rows of the window, and none once it goes.
faint-opacity
Platforms: macOS
The opacity of faint text, which programs write dim with the escape sequence SGR 2, over its background.
| Values | Default |
|---|---|
from 0.1 to 1 | 0.5 |
1draws faint text as the rest;0.1, the least, as faint as it gets.- Its color shows at that opacity over the cell's background, as the text's own color and the background's mixed.
- It applies at once, as you save the file.
[cursor]
The cursor that programs start with. Programs change its shape and its blinking, as vim does in insert mode, with the escape sequence DECSCUSR; CSI 0 SP q, which programs send to give the cursor back, and a reset bring these settings back.
shape
Platforms: macOS
The shape of the cursor.
| Values | Default |
|---|---|
"block", "bar", "underline", "hollow" | "block" |
"block"covers the cell, and the text under it takes the cell's background."bar"is a vertical line at the cell's left edge."underline"is a line at the cell's bottom edge."hollow"is a block of its edges alone. A window without the focus always shows a hollow block, whatever the shape.
Programs can choose among the first three alone, as DECSCUSR has no hollow block.
blink
Platforms: macOS
Whether the cursor blinks.
| Values | Default |
|---|---|
true, false | true |
- The cursor stays on for
blink-intervaland off for as long, or fades out and in, assmooth-blinksays. - It stops blinking, and stays on,
blink-timeoutafter the last key or the last output, 15 seconds by default, so that an idle window keeps the Mac idle too. A key, output, or the window's focus makes it blink again. - macOS's window server blinks the cursor, which wakes Lokyr no more than a steady cursor does, faded or not.
- Only the window that has the focus blinks, and a cursor that the program hides, as full-screen programs such as
htophide it, does not blink. - A program can turn blinking on or off with DECSCUSR. The escape sequence of mode 12, which some programs send as they start, turns blinking on too; its reset, which most full-screen programs send as they end, leaves this setting as it is.
thickness
Platforms: macOS
The width of a bar and the height of an underline, in points, so that they keep their look on a Retina display.
| Values | Default |
|---|---|
from 0.5 to 20 | the font's underline thickness |
A hollow block's edges always take the font's underline thickness.
length
Platforms: macOS
The height of a bar and the width of an underline, as a share of the cell, centered in it: 0.6 draws a bar of six tenths of the cell's height, with the rest above and below it, and an underline of six tenths of the cell's width, under the middle of the character; an underline under a wide character takes the share of its two cells. thickness stays the other side, a bar's width and an underline's height.
| Values | Default |
|---|---|
from 0.1 to 1 | 1, the whole cell |
A block and a hollow block always fill the cell. The shapes that programs ask for, as vim's bar in insert mode, take it too.
blink-interval
Platforms: macOS
How long the cursor stays on, then off, as it blinks without smooth-blink, in milliseconds.
| Values | Default |
|---|---|
from 100 to 5000 | 500 |
Text that blinks, as the escape sequence SGR 5 makes it, takes the same interval.
blink-timeout
Platforms: macOS
How long the cursor blinks after the last key or output, in seconds; then it stays on.
| Values | Default |
|---|---|
from 0 to 3600; 0 never stops | 15 |
A cursor that blinks for ever wakes Lokyr no more than one that stops, as the window server blinks it; the window server itself shows the window again at each change of the cursor's opacity, through each frame of a fade with smooth-blink, which a blinking that stops spares it.
smooth-blink
Platforms: macOS
Whether the cursor fades out and in as it blinks, rather than switching, and how: by one of five presets, or by the keys that follow.
| Values | Default |
|---|---|
"off", "breathing", "linear", "fast", "slow", "subtle", "custom" | "off" |
-
The presets, in milliseconds:
Preset Fade in Held visible Fade out Held hidden Curves "breathing"900 500 900 500 ease in and out "linear"400 700 400 500 linear "fast"200 700 200 200 ease in and out "slow"500 1000 750 200 ease in and out "subtle"150 900 150 200 ease in and out -
"custom"takesfade-in,fade-out,fade-in-curve,fade-out-curveandvisible,hidden, whose defaults are Breathing's. -
With Reduce motion on, in System Settings › Accessibility › Display on macOS, the cursor switches rather than fading, at each fade's middle.
-
What it costs: the window server composes the window at each refresh of a fade, while Lokyr itself does no more work. Measured on an M5 Pro, fades over half of the cycle, of 100, 500, 500 and 100 ms, took about a fifth of a core of the window server's CPU more, and fades over a sixth of it, about a twelfth; the cost grows with the share of the cycle that fades, from 21 % for
"subtle"to 64 % for"breathing". It lasts while the cursor blinks, in the window that has the focus, untilblink-timeout. A cursor that switches, the default, costs nothing measurable.
fade-in, fade-out
Platforms: macOS
With smooth-blink = "custom", how long the cursor fades in, and out, in milliseconds.
| Values | Default |
|---|---|
from 0 to 10000 | 900 |
A fade of 0 switches. A cycle of fades and holds shorter than 50 ms does not blink.
fade-in-curve, fade-out-curve
Platforms: macOS
With smooth-blink = "custom", how each fade goes: at a constant rate, slow at its start, slow at its end, or both.
| Values | Default |
|---|---|
"linear", "ease-in", "ease-out", "ease-in-out" | "ease-in-out" |
visible, hidden
Platforms: macOS
With smooth-blink = "custom", how long the cursor holds visible, after it fades in, and hidden, after it fades out, in milliseconds.
| Values | Default |
|---|---|
from 0 to 10000 | 500 |
movement
Platforms: macOS
How the cursor moves to a new cell: at once, or slid there.
| Value | Meaning |
|---|---|
"instant" | At once |
"snappy" | Slid there in 80 ms, slowing as it comes |
Default: "instant".
- Only the cursor slides: the text that a key changes shows at the next frame, as with
"instant", so that what you type takes no longer to show. - It slides as it moves of its own, as a program writes or moves it; a scroll of the view or of the screen, a new size of the text or of the window, another pane, and the cursor that shows again after it was hidden move it at once.
- A burst of output moves it once, from where it shows to where it is at the next frame; a slide under way goes on from where the cursor is.
- The window server slides it, as it blinks it: Lokyr draws no frame of its own for it, and wakes no more. What it costs: a key's echo shows a refresh later more often, about 2.6 ms of the latency's median at 60 Hz on an M5 Pro, as the window server shows the frame of a slide's start later; the tail is no longer, and at rest it costs nothing.
- With Reduce motion on, in System Settings › Accessibility › Display on macOS, it moves at once.
- It applies as you save the file.
guide
Platforms: macOS
Whether a band across the cursor's row shows where the cursor is, the cursor guide, under the text.
| Values | Default |
|---|---|
true, false | false |
- Its color is the theme's
cursor.guide, as the authors' guide tells, of an.itermcolorsfile's Cursor Guide Color too, else the text's color at 10%. - View › Show Cursor Guide turns it on and off in every window until the config's value changes, as its command,
window.toggle-cursor-guide, bound to ⌥⌘; by default. - It shows in the pane that has the keyboard, while the cursor shows; a program that hides its cursor, as a full-screen one may, hides the band too.
- It applies at once, as you save the file.
hdr
Platforms: macOS
Whether the cursor shows brighter than white, on a display of extended dynamic range, as the MacBook Pro's.
| Values | Default |
|---|---|
true, false | false |
- Its brightness is
hdr-brightness's, its color the cursor's own. - On a display of no extended dynamic range, as most external ones, the cursor stays as it is.
- A display that shows brighter than white raises its backlight, and dims the rest of the screen to match, for as long as the cursor shows: it takes more power, as an HDR video does, which a laptop's battery feels. That is why it is off by default.
- It applies at once, as you save the file.
hdr-brightness
Platforms: macOS
How much brighter than white the cursor shows with hdr, as a multiple of white's light.
| Values | Default |
|---|---|
from 1 to 4, whole or not | 2 |
1is white's light;4, four times it, as far as the display's headroom goes, which the system narrows in bright light and on battery.- It applies at once, as you save the file.
click-to-move
Platforms: macOS · Since 1.3
Whether a click in your shell's command line moves its cursor there, as in a text field, and a key that deletes or types over a selection of the command line takes its place.
| Values | Default |
|---|---|
true, false | true |
- It needs a shell that announces it at its prompt: zsh, bash and fish of Lokyr's shell integration (
shell-integration), and any shell that announces it of its own. Lokyr sends the shell the left and right arrow keys to the clicked character, or the click itself, as the shell asks. - A plain click alone moves the cursor, of no modifier, while the shell edits its command line: a drag still selects, a click on the prompt or below the command moves nothing, and one past the command's end moves the cursor to its end.
- Lokyr sends the keys of a click or a selection to a shell in front of the pane alone: a program that it runs, such as
catof a file or a remote shell overssh, gets none, whatever prompts' marks its output holds. - Backspace or Delete over a selection of the command line takes it away, and a typed character takes its place, of the arrow keys to the selection's end and as many Backspaces.
falsesends the shell nothing of either: a click selects nothing, and a key over a selection goes to the shell as it is.- It applies at once, as you save the file.
[window]
columns, rows
Platforms: macOS
The size of a new window, in columns and rows of the font's cells.
| Values | Default |
|---|---|
whole numbers, from 1 to 1000 | 100 columns, 30 rows |
- The window is of that many cells, with the padding around them, below the titlebar; the display that it opens on, which can be smaller, can make it smaller.
- While
remember-frameis on, the first window, as Lokyr starts, takes the place and the size of the last window that you moved or resized instead, and the windows that you open after it take that size, at a place of their own: these keys apply until a window keeps one. - It applies to the windows that open after you save the file; those that are open keep their size.
remember-frame
Platforms: macOS
Whether the first window, as Lokyr starts, opens where the last window that you moved or resized was, of its size.
| Values | Default |
|---|---|
true, false | true |
- The windows that you open after the first take the size of the last window that you moved or resized, or
columnsandrowswhile no window kept one, down and to the right of the window that has the focus, or of the one in front, as when a question is open on it; within the display. Where Lokyr places a window is not kept, only where you move or resize it. - A window that was on a display that is no longer there opens on one that is.
- The windows that open again as Lokyr starts, as
restore-windowssays, open where they were, whatever this key says. - Lokyr keeps the place in its preferences of macOS, not in the config file; a window in full screen leaves it as it was.
- It applies as you save the file, to the windows that you move or resize from then, and to the next start.
close-on-exit
Platforms: macOS
What a window does when its program ends, such as the shell after exit.
| Values | Default |
|---|---|
"clean", "always", "never" | "clean" |
"clean"closes the window when the program exits with the status 0, and otherwise keeps it open, with a line that tells how the program ended, such as[the program exited with code 1; a key closes the pane], until you press a key, one that types or acts: a modifier, Caps Lock, Fn or a key with Command leave it open."always"closes the window."never"keeps it open, with the line, until you press a key.
The login shell's status is its own: on macOS, login, which starts it, hides it, and the shell tells it to Lokyr as it ends. A status past 128 tells the signal that ended it, as shells give it.
Closing the last window leaves Lokyr open, unless quit-after-last-window-closed says otherwise.
start-directory
Platforms: macOS
The folder that the first window's shell starts in, as Lokyr starts.
| Values | Default |
|---|---|
"home", "last", or a path from / or ~ | "home" |
"home"starts in your home folder."last"starts in the folder of the last window that closed, or of the window in front as you quit Lokyr with several open: the shell's folder, or that of the program that ran in it, asvim's. Lokyr keeps it in~/Library/Application Support/lokyr/state/on macOS, not in the config file.- A path, as
"~/Projects", starts there. - A folder that is not there, or that you cannot enter, starts in your home folder, and the log tells why.
- The windows that open again as Lokyr starts, as
restore-windowssays, start in their own folders. - It applies at the next start.
new-directory
Platforms: macOS
The folder that a new window's shell starts in, as ⌘N opens one, and a new tab's, a split's, a floating pane's or a popup's, of a popup that names no folder of its own · Since 1.5.
| Values | Default |
|---|---|
"inherit", "home", or a path from / or ~ | "inherit" |
"inherit"starts in the folder of the program in the window that has the focus, or that had it last while Lokyr is not active, as from the Dock's menu: the shell's folder, or that of the program that runs in it, asvim's; in your home folder without a window, or when the folder cannot be read, as a program of another user's, assudo's.- A new tab or a split, as ⌘T, ⌘D and ⇧⌘D open them, starts in the folder of the program that runs in the pane that it comes from, or of that pane's shell where the program's cannot be read, as
sudo's, as macOS tells them, so that a split of a pane wheresshruns starts where the shell worked before it. · Since 1.6.1 "home"starts in your home folder.- A path, as
"~/Projects", starts there; one that is not there starts in your home folder, and the log tells why. - It applies at once, to the windows, tabs and splits that open from then.
padding-x, padding-y
Platforms: macOS
The room between the grid and the window's edges, in points: padding-x at the left and the right, padding-y at the top and the bottom.
| Values | Default |
|---|---|
from 0 to 100, whole or not | 4 |
- In points, so that it keeps its look on a Retina display.
- A window is seldom a whole number of cells: the room that the cells leave over goes to the right and the bottom, past the padding, so that the text stays where it is as the window's size changes.
- The padding takes the background of the cells without a color of their own: a background that a program colors, such as a status line's, stops at the grid.
- With splits, each pane keeps its padding on every side: a divider stands between the padding of the panes on either side of it, and runs to the panes' room's edges.
- The gutter takes the padding at the cells' left: with
gutteron, a padding narrower than 4 points widens to 4, at the left and the right.
gutter
Platforms: macOS
Whether each pane shows a gutter at the left of its cells, with a mark on the prompt of each command that ran: a thin bar the height of the prompt's row, faint gray for a command that succeeded, red for one that failed, the accent's color for one that still runs.
| Values | Default |
|---|---|
true, false | true |
- The marks need the shell to mark its prompts and its commands, as the shells' integration does (
shell-integration): without it, the gutter shows nothing. - A command's mark shows its exit status: 0, or none that the shell told, is a success, any other a failure, as an interrupted command's.
- The mark is on the prompt's first line of text, so that a prompt that starts with an empty line, as some prompt themes print, has it on the line after.
- The gutter takes no column of the grid: it lies in the padding at the cells' left, which widens to 4 points, at the left and the right, if
padding-xis narrower. - The marks keep their lines as output scrolls them into the scrollback and a resize reflows them, and go with them, as the scrollback's limit or a clearing takes them.
- A program of the full screen, as an editor's, shows no prompt's mark, as its screen has no shell's prompts.
- While Blocks runs (
[plugins.blocks]), each command's bar runs along its block, from its prompt to its output's end. - Plugins can lay marks of their own colors in the gutter, which show over a prompt's mark of the same row; they show only while it is on.
- The colors are the theme's:
gutter.succeeded,gutter.failedandgutter.running.
scrollbar
Platforms: macOS
When each pane shows its scroll bar, at its right edge: a knob whose length and place tell how much of the scrollback and the screen the view shows, and where.
| Value | Meaning |
|---|---|
"system" | As macOS shows its own, as Show scroll bars in its Appearance settings says: as the view moves and as the pointer comes over it, or always, as it does with a mouse, or as you chose it |
"always" | Always |
"never" | Never |
Default: "system".
- As the view moves through the scrollback, by the wheel, the keys, a search or the copy mode, a thin knob shows, and fades a second after; output that comes at the screen shows none. With Reduce motion in macOS's Accessibility settings, it goes at once.
- The pointer over the pane's right edge shows it, wider over its track. A drag of the knob moves the view to the line that its place gives; at the bottom, the view follows the output again. A click on the track moves a page toward it, or the view to the spot clicked, as Click in the scroll bar to in macOS's settings says; Option the other way. Held, a page goes on to the next until the knob reaches the pointer · Since 1.6.1
- A search's matches show along it as marks, the current match's apart, while the find bar shows them, which keeps it shown.
- Shown as the view moves, it takes no column of the grid: it lies over the padding at the pane's right and the cells next to it, 15 points wide; while it shows, it takes the presses there. A view that shows every row, and a program's own screen, as vim's or less's, have none.
- Shown always, each pane keeps a room of 15 points for it at its right, past the padding, as macOS's own scroll bars take theirs: the grid gives it a column or two, and no cell lies under it, so that a click on the last column reaches its cell. A view that shows every row, and a program's own screen, show its track alone. · Since 1.6.1
- Its colors are the theme's:
scrollbar, the knob's,scrollbar.hover, while a drag holds it,scrollbar.track, andscrollbar.markandscrollbar.mark.current, the matches'. - It applies as you save the file. A change of macOS's settings, or a mouse plugged in or out, applies at once, to the panes' columns too. · Since 1.6.1
smooth-scroll
Platforms: macOS · Since 1.4
Whether a trackpad, a mouse's wheel and the scroll bar scroll the panes by pixels, rather than by whole rows.
| Values | Default |
|---|---|
true, false | false |
- With
true, the text follows your fingers on a trackpad or a Magic Mouse, and keeps gliding as you let go, as macOS's momentum has it. A mouse wheel's step glides over its rows, a drag of the scroll bar's knob moves the text by pixels, and a click on its track glides there. - The keys still scroll by whole rows: Page Up and Page Down, the jumps between prompts and the search's matches. The view stops at the scrollback's top and at the screen.
- A program that takes the wheel, such as vim or less on its own screen, still gets whole steps.
- While the text moves, Lokyr draws a frame at every refresh of the display, 60 or 120 a second, easing the text toward where the scroll takes it, so that it moves at an even pace however the trackpad's events fall, rather than one frame for each row that the text crosses; at rest, it draws none.
- It applies as you save the file.
background-opacity
Platforms: macOS
The opacity of the window's background, from 0, clear, to 1, opaque: below 1, what is behind the window shows through it.
| Values | Default |
|---|---|
from 0 to 1 | 1 |
- Only the default background lets it show, with the padding and the title bar, which take it, and the tab bar's background and the active tab's, as a pane's header, each of the same opacity as the panes, rather than theirs over the window's: a background that a program colors, such as a status line's, stays opaque, as do the selection, the cursor and the text.
- The settings window, which is no terminal's, stays opaque.
- View › Use Transparency, bound to ⌘U by default, shows the window in front opaque, and translucent again, as its command,
window.toggle-opacity, each window of its own, the config as it is; a new opacity or blur in the config shows in every window, those shown opaque too. - At
1the window is opaque, as it is by default.
background-blur
Platforms: macOS
The radius of the blur of what shows through the background, in points.
| Values | Default |
|---|---|
from 0 to 100, whole or not | 0, no blur |
- The blur shows only below a
background-opacityof 1. - macOS has no public way to blur what is behind a window: Lokyr asks the window server through a private call, which takes whole points, so that the radius is rounded. A larger radius asks more of the window server.
- What it costs: over a video that plays behind the window, a blur of 20 took about 4 % more of a core of the window server, measured on an M5 Pro; translucency without blur, nothing measurable. Over what does not change, the window server blurs it once.
title-size
Platforms: macOS
Whether the window's title ends with the size of its grid, in columns and rows, as lokyr — zsh — 120×30.
| Values | Default |
|---|---|
true, false | true |
- The title before it is the one that you give with Shell › Set Title…,
cmd+shift+i; otherwise the program's, when it gives one, as vim and the shells' prompts can, or a man page's, asman ls, or the folder of the program in the foreground; then that program, aslokyr — vim, which Lokyr looks at as the program writes, and once more a moment after, so that a program that you run shows though your prompt set the title. - As you resize the window, the size follows.
- It applies at once, as you save the file.
title-shortcut
Platforms: macOS
Whether the titlebar shows, at its right, the keys that bring the window forward, as ⌥⌘1; in a titlebar of tabs, after the window's buttons, as the tab bar shows them.
| Values | Default |
|---|---|
true, false | true |
- Each window takes, as it opens, the lowest number that no other open window has, from 1;
alt+cmd+1toalt+cmd+9bring the windows of the first nine forward, as[keys]says. The quick terminal has none. - The keys are those that your
[keys]bind towindow.gotoof the window's number, as the menus write them; a window whose number no binding has shows none. - It applies at once, as you save the file.
opaque-titlebar
Platforms: macOS
Whether the titlebar stays opaque over a translucent window, in the default background's color.
| Values | Default |
|---|---|
true, false | false |
- The terminal's background runs under the titlebar: with
false, the titlebar is as translucent as the background, asbackground-opacitymakes it; withtrue, it is opaque, and what is behind the window shows through the background below it alone. - A tab bar on the left that runs up through the titlebar, as
positionandstyleput it, keeps its own colors there: the titlebar is opaque beside it, over the panes. - The title's color reads over the background: a light background in the dark appearance, or a dark one in the light appearance, gives the window the appearance of its background.
- It applies at once, as you save the file.
[interface]
The font of Lokyr's own interface, as its tab bar and its panels, apart from the terminal's text, which takes [font]'s.
font-family
Platforms: macOS
The family of the interface's text, by its name, as Font Book shows it on macOS, such as "Helvetica Neue".
- Default: the system's interface font, as macOS's menus and windows show it, SF Pro.
- The case does not matter:
"helvetica neue"is Helvetica Neue. - A family that is not installed gives the default one.
- It applies to the views of the plugins in the window's tab bar, strip, status bar and panes' headers; Lokyr's own plugins show none yet, and the tabs bring the first.
font-size
Platforms: macOS
The size of the interface's text, in points.
| Values | Default |
|---|---|
from 4 to 200, whole or not | 13 |
The text is measured at its size of points, as the system's font draws each size of its own, and the display's scale enlarges it. It applies as font-family does.
[slots]
The plugins whose views fill the parts of the window that one plugin's view fills: the tab bar, and the panes' headers. The other parts, as the status bar, show the views of every plugin that fills them, in the plugins' order.
tab-bar
Platforms: macOS
The plugin whose tab bar the windows show, by its name, as "lokyr/tabs".
- Default: none, which takes the first plugin that has a tab bar.
- A plugin that is not installed, or that has no tab bar, gives the default one.
lokyr/tabshas one.
pane-header
Platforms: macOS
The plugin whose headers the panes show across their tops, by its name, as "lokyr/command-header".
- Default: none, which takes the first plugin that has the panes' headers.
- A plugin that is not installed, or that has no headers, gives the default one.
lokyr/splitshas them, which show each pane's title as itspane-titlesasks.
[terminal]
What programs are told of the terminal, and how it counts and keeps their text. The widths must match how the programs count characters, or their lines go wrong; the defaults suit most of them.
term
Platforms: macOS
The TERM that programs see, which tells them what the terminal can do: letters, digits, ., _, + and -, 64 at most.
| Values | Default |
|---|---|
a terminfo name, as "xterm-256color", "xterm-lokyr", "xterm", "vt220" | "xterm-256color" |
- It changes only what programs are told, never what the terminal does, which is the same whatever the name.
"xterm-lokyr"describes Lokyr itself, with the capabilities that the plain names lack, as undercurls and the keyboard protocol that reports every key; Lokyr carries its entry, and points programs to it, but a host that you reach over ssh lacks it, and its programs then fall back to plain behavior. A Lokyr that runs outside its bundle without the entry gives its windows"xterm-256color", and the log tells it.- It applies to the windows that open after the change: the programs of a window keep the
TERMthat they started with. - A name that no terminfo entry describes where programs look for one, in
~/.terminfo, the directories ofTERMINFO_DIRSand the system's, shows a notice across the windows' top, andlokyr +validate-configtells it: programs take a terminal that they know nothing of for a dumb one, and a shell's line editing then draws wrongly. Lokyr keeps the name, as a host that you reach over ssh can describe it.
unicode-widths
Platforms: macOS
Which width tables the terminal counts characters by, to place them in their cells.
| Values | Default |
|---|---|
"current", "8" | "current" |
"current"follows the tables of the Unicode version that Lokyr knows, as current programs do: most emoji take two cells.- A cluster of a letter and a vowel sign that spaces, as का or কা, or of consonants that a virama joins, as क्ष, takes two cells, as vim and most programs count it; so do a regional indicator alone, as 🇮, and an Arabic number sign with its digit, as ١.
- The zsh of macOS counts a vowel sign that spaces as no cell: after a cluster such as का, the cursor of its line editor stands a cell short of the text.
"8"follows those of Unicode 8, for old programs that count emoji as one cell: a cluster takes the cells of its first character, as का one, and a regional indicator alone one.- vim counts a character that the emoji's variation selector makes wide, as ❤️ or ✔️, as one cell: as it writes the next character on the emoji's second cell, the emoji goes, and vim shows nothing in its place. With
"8"the two count alike, but every emoji takes one cell, everywhere. - It applies to the text that comes after the change, in the open windows too.
ambiguous-width
Platforms: macOS
The cells of an East Asian Ambiguous character, as α, → and ○.
| Values | Default |
|---|---|
1, 2 | 1 |
2suits programs and fonts that draw them wide, as some of China, Japan and Korea do; most programs count them as 1.- The icons of Nerd Fonts, in Unicode's private area, are ambiguous too: with
2, a prompt that shows them, as oh-my-posh's and Powerlevel10k's do, takes more cells than the shell counts, and the line that you type goes wrong, its characters doubled or out of place. - Box drawing, the block elements and the powerline symbols are ambiguous too: with
2, those that Lokyr draws span both cells, so that lines meet and arrows keep their shape. - It applies to the text that comes after the change, in the open windows too.
normalization
Platforms: macOS
The normal form that printed text takes, which changes how a character and its accents are kept, and what a selection copies of them.
| Values | Default |
|---|---|
"none", "nfc", "nfd", "hfs+" | "none" |
"none"keeps the text as programs write it."nfc"composes it:eand a combining acute accent becomeé."nfd"decomposes it, the other way round;"hfs+"decomposes it as the file names of Apple's former file system, HFS+, are.- It applies to the text that comes after the change, in the open windows too.
shell-integration
Platforms: macOS
Whether your shell loads Lokyr's integration, which reports where each prompt starts, where your command starts and ends, its exit status, and the folder that it works in.
| Values | Default |
|---|---|
true, false | true |
- Lokyr loads it into zsh, bash and fish when they're your login shell, without changing your files. macOS's own bash,
/bin/bash, which is version 3.2, gets it only when you add a line to~/.bash_profile, and a shell that you start from another one when you add it to that shell's startup file, as Shell integration shows. - A change applies to the shells that start after it; the shells already open keep what they started with.
- Shell integration explains what it gives you, such as the jumps between prompts, the gutter's marks and a click in the command line, how each shell loads it, how to add it by hand, and what to do when commands get no marks.
image-memory
Platforms: macOS
The memory, in MiB, that the inline images of a pane take at most: the pictures that programs show in the terminal, as imgcat sends them through iTerm2's protocol and as kitten icat, chafa, timg and file managers' previews send them through kitty's graphics protocol, the images sent in the output itself.
| Values | Default |
|---|---|
from 0 to 1024, whole or not | 64 |
- Past it, or past 4096 images, the oldest go, those that show nowhere first.
- An image counts as its program sent it, 1 KiB at least, as a PNG or a JPEG is compressed; the drawing takes its own memory of the graphics card, for the images that show, each made as small as it shows, 32 million pixels of them all at most, the least recently shown going first.
- An image of more than 16 million pixels shows nothing; kitty's images read from files, temporary files or shared memory are refused, as a program's way to read your files through the terminal.
0shows no image: the programs that ask whether the terminal shows them are told it does not.- It applies to the panes that open after the change.
[scrollback]
The scrollback holds the rows that went up past the screen's top. The wheel and the trackpad scroll through it, and with Shift held they scroll it even when a program takes the mouse.
scroll-on-output
Platforms: macOS
Whether a program's output brings a view scrolled up into the scrollback back down to the screen.
| Values | Default |
|---|---|
true, false | false |
- With
false, the view stays on the rows you scrolled to while the program goes on writing, so that you can read what scrolled past. - Typing, pasting and the input method's text always bring the view back down, whatever the key says; a modifier alone, as Shift, does not.
- While the find bar shows a match, the view stays where the search took it, at the match, whatever the key says, and output brings it down again once the bar closes.
- A new value applies at once, to the windows that are open too.
limit
Platforms: macOS
The memory that a window's scrollback takes, its screen's included, in MiB, whole or not.
| Values | Default |
|---|---|
from 1 to 16384 | 10 |
- The oldest rows go as new ones pass it; 10 MiB keep about 10,000 rows of 120 columns, whatever their length.
- A smaller value applies to the open windows too, which give back their oldest rows as their next ones come.
budget
Platforms: macOS
The memory that the scrollbacks of all the windows share, in MiB, whole or not.
| Values | Default |
|---|---|
from 1 to 16384 | 100 |
- A window that needs more than the budget leaves gives back its own oldest rows, never another's: a busy window does not take the scrollback of a quiet one.
- A window's screen always has its rows, past the budget too.
- A new value applies at once, to the windows that are open too.
[keyboard]
option-as-meta
Platforms: macOS
Which Option keys act as Meta: they send an escape before the key, rather than typing the characters that the keyboard layout gives them.
| Values | Default |
|---|---|
"none", "left", "right", "both" | "none" |
- The default is
"none", as Option types characters that many layouts need, such as@,#,[,],{,}and~on the Italian layout. "left"lets the right Option type those characters, and makes the left one Meta, for the shortcuts of shells and editors such asMeta-bandMeta-f.- An Option that acts as Meta does not compose either: its dead keys, such as Option and
eon the US layout, send Meta ande. - With Meta, a key whose character is past ASCII sends the key in its place on the US layout: Meta and
òon the Italian layout send Meta and;.
[clipboard]
What programs do with the clipboard. A program writes to it with the escape sequence OSC 52, as tmux and Neovim copy over ssh: the write always reaches it, up to 1 MiB of text, while the primary selection, which macOS lacks, takes nothing.
read
Platforms: macOS
Whether a program can read the clipboard, with OSC 52.
| Values | Default |
|---|---|
"never", "ask" | "never" |
"never"answers nothing: a program that runs elsewhere, over ssh, could otherwise read what you copied, such as a password."ask"asks you with an alert at each read, on the program's window, whose default button refuses; the program gets the clipboard's text only if you allow it.- It applies as you save the file, to the windows that are open too.
confirm-paste
Platforms: macOS
When a paste with line breaks asks you first: a program that does not ask for bracketed paste, as cat or a plain sh, takes each line break as Return, which can run a command.
| Values | Default |
|---|---|
"auto", "always", "never" | "auto" |
"auto"asks when the program does not ask for bracketed paste and the text has several lines. A single line with a line break after it, as a command copied with its line's end, pastes without the line break, so that the command waits for your Return. A shell that asks for bracketed paste, as zsh, fish and recent versions of bash do, takes any paste as typed text, which runs nothing: it is never asked about."always"asks whenever the text has a line break, into any program."never"pastes as it is.- Text that you drop on a window pastes as a paste does, and asks the same way; files that you drop paste their paths, each quoted for the shell where it needs it, as
'/tmp/a file.txt', apart by spaces and with one after the last. - The question shows the text's first lines, as the program would get them, and three buttons: Paste, the default one; Paste as One Line, which puts a space for each line break and leaves out the last one; and Cancel. Its checkbox, Don't ask again, sets this key to
"never"in your config file as you paste, keeping the rest of the file and its comments, in the file that a link points to; a config file with an error is left as it is, and the choice lasts until Lokyr quits. - It applies as you save the file.
copy-on-select
Platforms: macOS
Whether a selection that you make with the mouse copies its text to the clipboard as you let go of the button, as a double click on a word does too.
| Values | Default |
|---|---|
true, false | false |
- With
false, ⌘C copies the selection, as other Mac apps do. - You select by dragging, the cells between where you press and where the pointer is; a double click takes a word, a triple click a line, and dragging after them goes on by words or lines; Option makes a rectangle; Shift's click extends the last selection, and Command's opens a link, as
cmd+clickdoes; dragging past the window's top or bottom scrolls, the faster the farther; output that scrolls the text as you drag leaves the selection's start on its text. A click takes the selection away. - A right click, or a Control click, opens a menu at the pointer: Open Link; Open man Page, which opens a window of the man page that the selection names, as
lsorls(1), through your login shell, as yourPATHfinds the pages: black on light yellow, which it keeps oncemanhas printed it, whateverclose-on-exitsays, and where the arrows, Space, the page keys, Home and End scroll; Look Up, which shows the definition of the selection, of one line, in the dictionary's panel of macOS; Copy, Paste, Select All and Clear. An item is dimmed where it would do nothing, as Open Link where no link is, or one that leads nowhere, Open man Page where the selection is no page's name, and Copy and Look Up without a selection. As the menu opens, the click keeps the selection when it is on it; else it selects the word under the pointer, which it does not copy, or nothing on a blank cell. - A program that takes the mouse, as vim or htop can, has the clicks, the right button's too: Shift held keeps them for the selection, and for the menu. The pointer over the window is the text's I-beam, and the arrow while a program takes the clicks.
- It applies as you save the file.
[links]
What a link does as you open it, with cmd+click, or as a plugin opens one. A folder always opens in the Finder, without asking. A file that would run rather than open, as a program, an application, an installer or a script that macOS would run in a terminal, never runs: it shows in the Finder, selected. A symbolic link and a Finder alias count as the file that they lead to, and a file counts as the application that would open it, which a file's own "Open With" can choose. The section also names the engine that searches the web for the selection.
urls
Platforms: macOS
What a URL does: one of http, https or mailto, as the text writes it, or as a program's link leads to it, whose text can say something else.
| Values | Default |
|---|---|
"ask", "open" | "ask" |
"ask"asks you first, showing the URL in full, with two buttons: Open, the default one, and Cancel. Its checkbox, Don't ask again for links, sets this key to"open"in your config file as the URL opens, keeping the rest of the file and its comments, in the file that a link points to; a config file with an error is left as it is, and the choice lasts until Lokyr quits."open"opens it in its application, as your browser or your mail.- It applies as you save the file.
files
Platforms: macOS
What a file does: a path, or a file URL.
| Values | Default |
|---|---|
"ask", "open", "reveal" | "ask" |
"ask"asks you first, showing the path in full, with three buttons: Open, the default one, Show in Finder, and Cancel. Its checkbox, Don't ask again for files, sets this key to the button that you choose,"open"or"reveal", in your config file, asurlsdoes."open"opens it in its application, as the Finder would."reveal"shows it in the Finder, selected.- It applies as you save the file.
search-engine
Platforms: macOS
The engine of Search the Web, which the pane's context menu has for the selection of one line.
| Values | Default |
|---|---|
"google", "duckduckgo", "bing", "ecosia", "kagi", "startpage", or a URL from https:// or http:// that holds {query} | "google" |
- A name searches that engine.
- A URL of your own takes the selection in place of its
{query}, escaped as a URL's query takes it, as"https://search.example/?q={query}". - The search opens in your browser at once, without asking, as
urlswould for a program's link, since you chose it. - It applies as you save the file.
editor
Platforms: macOS
The editor that a path's line opens in, as compilers, tests and AI agents print it, src/main.rs:42, src/main.rs:42:7, src/app.ts(42,7) or src/main.rs#L42, with cmd+click.
| Values | Default |
|---|---|
"system", "vscode", "vscode-insiders", "cursor", "windsurf", "zed", "sublime", "textmate", or an address of your own that holds {path} | "system" |
"system"opens the file in its application, as the Finder would, at no line.- A name opens the file at its line and column in that editor, through the address that the editor answers to, as
vscode://file/<path>:<line>:<column>; the first column where the text gives none. - An address of your own, of a scheme, takes the file's path in place of its
{path}, escaped as a URL's path takes it, its line in place of{line}and its column in place of{column}, as"jetbrains://idea/navigate/reference?path={path}&line={line}". An address of thefilescheme is refused, as it would open a program's path as the program. filesstill decides first:"ask"asks before the editor opens, and"reveal"shows the file in the Finder.- A file whose own application is a terminal, as a source file that a terminal claims, or a script, opens in the editor too, as text, since nothing runs; with
"system"it shows in the Finder, never running. - Where the editor is not installed, the file opens in its application, as
"system"does; a folder always opens in the Finder. - It applies as you save the file.
[bell]
What a program's bell does, the character BEL that it prints, as printf '\a', or as the agents that run in the terminal ring it when they wait for you. Each kind takes its own key; they apply as you save the file. Bells that come within a fifth of a second of the last one in the window do nothing more.
sound
Platforms: macOS
Whether the bell plays the system's alert sound, the one that System Settings chooses on macOS, in Sound.
| Values | Default |
|---|---|
true, false | false |
flash
Platforms: macOS
Whether the window flashes, for a tenth of a second, when its bell rings while it has the focus.
| Values | Default |
|---|---|
true, false | true |
bounce
Platforms: macOS
Whether the Dock's icon bounces once when the bell of a window without the focus rings, while Lokyr is not the active application.
| Values | Default |
|---|---|
true, false | true |
mark-title
Platforms: macOS
Whether a window without the focus whose bell rang shows 🔔 before its title, until it takes the focus. Where the tab bar is in the titlebar, or a single tab's title takes its place, the shown tab shows the bell's mark instead.
| Values | Default |
|---|---|
true, false | true |
[notifications]
What Lokyr tells you of its own in a notification of the system's, while the window has no focus. A notification within two seconds of the last one of the window shows nothing, and a click on one brings forward the pane that told it, with its tab and its window.
long-command
Platforms: macOS
How long a command runs, at least, in seconds, for a notification as it ends while its window has no focus, which tells the command, whether it succeeded or its exit status, and how long it ran.
| Values | Default |
|---|---|
from 1 to 86400; 0 for none | 10 |
- It needs your shell to mark its commands, as
shell-integrationhas zsh, bash and fish do: a command runs from the mark of its output's start to that of its end, as Lokyr finds them in its output, without a clock that runs meanwhile. - The notification's title is the command as you typed it, or the window's, once its line has left the scrollback. zsh, and fish 4 or later, tell the line itself, which leaves a right prompt out, as zsh's
RPROMPT; bash's, and an older fish's, is the text of its row. - It applies as you save the file, to the commands that end after.
[agents]
The AI agents that run in your panes, as Claude Code, Codex, Gemini CLI or Aider. Lokyr knows an agent by its program in the pane's foreground, and tells its state on its tab, of what the agent does, with no setup of its own:
- At work, a sparkle: while it prints of its own, apart from the echo of your keys, while it tells a progress, as OSC 9;4, or while its title's spinner turns.
- Waiting for you, a dot of its own: once it asks for you, by a notification of its own, OSC 9 or OSC 777, or its bell, as an agent asks for a permission; until you type into its pane, whatever it draws meanwhile. The tab's tooltip tells what its notification asked, as "Claude needs your permission to use Bash", and in a tab of several panes a ring of the dot's color goes round the pane that waits.
- Done, a tick: once it showed no work for a while,
done-after, after you asked it something, once for each time you asked; until it works again, you type into its pane, or you switch to its tab, as seen. Its first output, as it starts, asks for nothing, and shows nothing.
A tab of several agents shows the one that waits before one at work, and one at work before one done. Window › Go to Next Agent, alt+cmd+a, goes to the next tab whose agent waits for you, or, of none, is done, in every window; Window › Show Agents…, shift+alt+cmd+a, lists them all in the palette, the most urgent first. An agent that tells nothing of its own, of no notification nor bell, waits without a dot: some agents tell their requests to the terminals that they know alone, and an option of theirs turns their notifications or their bell on, as Claude Code's preferredNotifChannel.
Claude Code's exact state: Lokyr › Install Claude Code Integration… adds hooks to Claude Code's settings, settings.json of ~/.claude and of each ~/.claude-* folder of Claude Code's beside it, as a CLAUDE_CONFIG_DIR makes, asking of each in turn and keeping a copy of the file as it was before Lokyr's hooks as settings.json.lokyr-backup, of the file's permissions. Claude Code then tells Lokyr when you submit a request, when it asks for a permission, when it ends its answer, and when an error ends it, a red mark of its own: its state no longer guesses from its output and its quiet, its bell and its other notifications no longer tell that it waits, and done-after no longer applies to it; but a key while it works or asks, as Escape that interrupts it or refuses a permission, which Claude Code tells no hook of, lets its output and its quiet tell its state again until its next hook. The hooks write nothing in another terminal. To take them away, remove the groups whose commands hold lokyr-agent: from the file's hooks.
programs
Platforms: macOS
The names of the agents' programs, as the processes in a pane's foreground go by them.
| Values | Default |
|---|---|
| a list of names | ["claude", "codex", "gemini", "opencode", "aider", "cursor-agent", "copilot", "amp", "goose", "qwen", "crush", "droid"] |
- A program goes by its executable's name, by the name that started it, as a link's, and, run by
node,python,bun,deno,rubyorperl, by its script's or its module's, asnode /opt/homebrew/bin/geminigoes bygeminiandpython3 -m aiderbyaider; each process of the foreground's group counts, as a launcher's program. - A program that tells its status, of OSC 7501, as Claude Code and Codex do, is an agent too, whether the list names it or not, which shows what it tells rather than what its output suggests.
- An empty list turns the agents off: no tab marks one, of those that tell their status neither, and no notification nor badge comes.
- It applies to the programs that start after you save the file, and to those that run as their pane shows output again.
done-after
Platforms: macOS
How long an agent shows no work, in seconds, before it is done, once you asked it something.
| Values | Default |
|---|---|
from 0.5 to 60 | 3 |
- An agent that thinks a long while without printing, of no spinner, may show done before it prints again: a longer time keeps it at work.
- It applies as you save the file.
notify
Platforms: macOS
Whether an agent tells, in a notification of the system's, that it waits for you or is done, while its window has no focus.
| Values | Default |
|---|---|
true, false | true |
- The notification tells the agent's program, the message that it told, if any, and its tab's title; a click on it brings forward the agent's pane, its tab and its window. An agent that asks for you by a notification of its own (OSC 9 or OSC 777, as Claude Code's notification channels send) shows that notification alone, whose click brings its pane forward too; Lokyr tells "is waiting for you" of an agent that rings its bell.
- It applies as you save the file.
dock-badge
Platforms: macOS
Whether the Dock's icon counts the agents that wait for you, in every window, in a badge.
| Values | Default |
|---|---|
true, false | true |
- The badge goes once none waits.
- The triggers' notifications that came while Lokyr was behind count there too, whatever this key, until you come back to Lokyr · Since 1.7.
- It applies as you save the file.
[sessions]
The sessions' switcher, ⌃⌘S, lists the sessions open, then folders: those that folders names, and the folders where your panes' shells worked last. Choosing a folder opens a session there, or shows the one opened there already.
folders
Platforms: macOS · Since 1.5
The folders that the sessions' switcher lists, ⌃⌘S or Window › Sessions › Switch Session…, beside the sessions open and the folders where your panes' shells worked last.
| Values | Default |
|---|---|
| a list of paths | [] |
- Each is a path from
/or~, as"~/.config", or of a last part*, as"~/src/*", which lists every folder in it, of one level, but those whose names start with a dot. - Choosing a folder opens a session there, named after the folder, its first window's shell in it; a session opened there already shows instead.
- A path that is no folder lists nothing. The switcher lists 500 folders of them at most, and of a last part
*reads the first 500 entries of its folder, files among them. - A folder on a network volume, or on one that macOS mounts as it is reached, lists by its name alone, unread, so that a server that answers slowly does not hold the switcher · Since 1.6.1
- Lokyr lists the folders in the background: a folder on a slow disk shows a moment after the switcher opens.
- The recent folders are those that your shells told last, as your shell's integration tells them, the last 50, which Lokyr keeps in
~/Library/Application Support/lokyr/state/recent-folderson macOS. - It applies as the switcher opens next.
[theme]
The colors of the terminal and of Lokyr's own interface: a theme for the light appearance and one for the dark one, which follow the system's appearance, or the one that View › Appearance chooses, and switch at once.
A theme is a built-in one, Lokyr Light or Lokyr Dark, one of the themes that Lokyr holds, or a file of the themes folder beside the config file, ~/.config/lokyr/themes/, named by its file without its extension: Nightfall is themes/Nightfall.toml, in Lokyr's own format below, or themes/Nightfall.itermcolors, the format of the largest collections of terminal themes, which Lokyr reads as it is. A file of the folder of a held or built-in theme's name takes its place, and a .toml one an .itermcolors one of its name. View › Open Themes Folder opens the folder in the Finder, making it first if it is not there; View › New Theme from Current… makes a new theme there of every color of the one in force, and New… on the settings window's Themes page one of Lokyr's own values of its appearance, of every key, each used and opened in your editor.
To make a theme, Making a theme tells every key and color of the format, of a full example.
Lokyr holds 278 themes, those of a permissive license of the largest collection of .itermcolors themes, by their names there, as Dracula, Catppuccin Mocha, Nord, Rose Pine Dawn or TokyoNight Day, and <name> (Light) and <name> (Dark) of those of both appearances: Lokyr.app/Contents/Resources/licenses/themes/README.md lists them, with their licenses and sources, and their files are in Lokyr.app/Contents/Resources/themes, which a theme of the folder can extend.
- An
.itermcolorsfile of colors for the light and the dark appearance is two themes,<name> (Light)and<name> (Dark), asdark = "Nightfall (Dark)". - Its colors read as their files say, of sRGB, Display P3 or the calibrated colors of older files, converted to sRGB; its link's, underline's and the find bar's match's colors too.
View › Choose Theme…, the command palette's theme picker, lists the themes of the appearance in force, shows each as you move through them, and names the one you choose in [theme], light or dark as the appearance is.
A theme's file goes into the folder by hand, or as Lokyr imports it: View › Import Themes…, or Import… on the settings window's Themes page, copies the .itermcolors and .toml files that you choose, several at once, asking once whether to replace those of a name there already; or, on macOS, a double click on an .itermcolors file in the Finder, or a theme's file, .itermcolors or .toml, dropped on Lokyr's icon in the Dock, asks to install it. Install copies it into the folder, in place of a file of its name; Install and Use names it in [theme] too, light or dark by its variant, both for a file of both appearances; neither converts it. The variant is the one that the file says: an .itermcolors file of (Light) and (Dark) keys is of both, a .toml one of its variant, and any other is light if its background is lighter than its text, and dark otherwise. A theme of the appearance not in force changes nothing that shows until Lokyr takes its appearance: the question tells it, and its checkbox switches Lokyr to that appearance, as View › Appearance does, which sets appearance. Where another app opens .itermcolors files at a double click, Lokyr is in the Finder's Open With menu.
# ~/.config/lokyr/themes/Nightfall.toml
[theme]
name = "Nightfall" # what the theme calls itself; the file's name names it in the config
author = "Ada" # author, license and source tell people, and change nothing
license = "MIT"
variant = "dark" # light | dark; of its colors when left out
extends = "Lokyr Dark" # a theme whose colors this one's override
[terminal]
background = "#1e1e20" # the text's background
foreground = "#e6e6e6" # the text
palette = ["#45454b", "#f25d62", "#58c672", "#e3bd4c", "#5aa2f7", "#c983de", "#4cc4cf", "#c4c4ca",
"#75757d", "#ff8488", "#7edb94", "#f5d47a", "#86bcff", "#dca3ec", "#7adce4", "#f4f4f6"]
cursor = "#e6e6e6" # the cursor; the text's color when left out
selection = "#34445f" # the selection's background
bold = "#ffffff" # bold text's color; its own when left out
[search]
match = "#ffd60a4d" # a match of the find bar, #rrggbbaa of an opacity
current = "#ff7a0080" # the current match
[tabs] # the tab bar's colors
bar.bg = "#18181a"
active = { bg = "#1e1e20", fg = "#ffffff" }
[interface] # Lokyr's own colors, by their names
"panel.bg" = "#252528"
- Colors are
#rrggbb, or#rrggbbaaof an opacity, in sRGB. [terminal]gives the terminal's colors:background,foregroundand the 16 colors ofpalette, black to bright white, which every theme gives itself or through the theme that it extends;cursor,cursor-text,selection,selection-text,bold,linkandunderline, which it can give.- What a theme leaves out follows its terminal's colors: the tab bar, the panels, the fields, the buttons and the find bar's highlights take colors of its background, its text and its palette, so that a theme of
[terminal]alone colors all of Lokyr. - The other sections give the interface's colors by their names:
[search]the find bar's highlights,matchandcurrent;[tabs]the tab bar's, asbar.bg,active.bg,active.fg,inactive.fgandhover.bg;[interface]the rest of Lokyr's, aspanel.bg,field.bg,accentortext.secondary. - A theme gives colors alone: the tab bar's look, its place and the rest stay in the config, as
[plugins.tabs]has them; the command's header names the theme's tokens that it takes, as[plugins.blocks]has them. extendsnames a theme, a file's or a built-in one, whose colors this one takes where it gives none, eight deep at most.- As you save a theme's file, or the config, the theme applies at once, in the open windows too.
- A file with an error tells it, with its line, in the notice's card at the windows' top right, and the theme in force stays.
light
Platforms: macOS
The light appearance's theme, by its name.
| Values | Default |
|---|---|
| the name of a theme | "Lokyr Light" |
- A name that no file, no held theme and no built-in theme has shows in the bar, and the theme in force stays.
dark
Platforms: macOS
The dark appearance's theme, by its name.
| Values | Default |
|---|---|
| the name of a theme | "Lokyr Dark" |
minimum-contrast
Platforms: macOS
The least contrast of the terminal's text to its background, as the ratio of WCAG's guidelines for the web: a text of less moves toward white or black, whichever reads better, as little as gives it.
| Values | Default |
|---|---|
from 1 to 21, whole or not | 1 |
1leaves the colors as the programs and the theme give them;4.5is the contrast that the guidelines ask of text;21makes every text black or white.- It applies to the terminal's text alone, Lokyr's own following its theme.
- It applies at once, as you save the file.
[app]
icon
Platforms: macOS
The variant of Lokyr's icon that shows in the Dock and the app switcher while Lokyr runs, and in the Dock after it quits, by its name.
| Values | Default |
|---|---|
"jormungandr", "jormungandr-sticker", "laguz" | "jormungandr" |
- A new variant applies at once, as you save the file.
- Kept in the Dock, Lokyr shows the variant there after it quits too, through a Dock tile plug-in in the app; the Finder and the Apps launcher show
"jormungandr"whatever the key says: they show the app's own icon, which an app cannot change without changing the app itself, which would break its signature. - A name that is not one of Lokyr's variants keeps the default, and the log names the variants; the rest of the file applies.
language
Platforms: macOS
The language of what Lokyr shows: its menus, the titles of its commands, and the line of a window whose program ended.
| Values | Default |
|---|---|
"system", "en", "it" | "system" |
"system"takes the first of your preferred languages, in the system's settings, that Lokyr has, and English when it has none of them.- A language with its region, as
"it-IT", takes its language. - A new value applies at once, as you save the file, to the menus too; a line already shown stays as it was.
- A language that Lokyr does not have takes the system's, and the log names those that it has; the rest of the file applies.
- The prompts that macOS shows when a program asks for the camera, the contacts and the like follow the system's language, whatever the key says.
- The log, for the reports of problems, stays in English.
appearance
Platforms: macOS
Whether Lokyr is light or dark: the theme's colors, and Lokyr's own titlebar, menus and alerts.
| Values | Default |
|---|---|
"system", "light", "dark" | "system" |
"system"follows the appearance of macOS, in the system's settings, as it changes, automatic too;"light"and"dark"keep theirs, whatever the system's is.- The View menu's Appearance sets it too: Automatic, Light or Dark, the one in force ticked. The choice goes into your config file, keeping the rest of the file and its comments, in the file that a link points to; a config file with an error is left as it is, and the choice lasts until Lokyr quits, or until you change the key.
- It applies at once, as you save the file.
quit-after-last-window-closed
Platforms: macOS
Whether Lokyr quits as you close its last window.
| Values | Default |
|---|---|
true, false | false |
- With
false, Lokyr stays open without windows, as macOS's apps do, its menus and a global key at hand: its icon in the Dock opens a window, and so do ⌘N and Shell › New Window, and the quick terminal, hidden, keeps its shell. - With
true, closing the last window quits Lokyr, the hidden quick terminal and its shell with it, asking you first while a program runs there, a global key's quick terminal too. - It applies at once, as you save the file.
restore-windows
Platforms: macOS
Whether the windows that were open as you quit Lokyr open again as it starts: each where it was, of its size, with its tabs, their splits, and each pane in its folder.
| Values | Default |
|---|---|
"system", "always", "never" | "system" |
"system"does as macOS's setting says, "Close windows when quitting an application" in System Settings › Desktop & Dock: with it on, as it is by default, the windows do not open again."always"opens them again, whatever macOS says;"never"never does.- What opens again: each window where it was, on a display that is still there, or on the nearest one, within it; a window in full screen opens out of it, where it was before; its tabs in their order, the one that showed, each tab's own title and color, its splits and their sizes, the pane that had the keyboard and the one zoomed. Each pane starts your shell anew, in the folder that its shell told last, or where its program worked: what the panes showed, and the programs that ran in them, do not come back.
- The quick terminal and the man pages' windows are not kept.
- Lokyr keeps the windows as it quits, in
~/Library/Application Support/lokyr/state/on macOS, not in the config file: after a crash or a force quit, the windows of the quit before open again. Quitting with no window open, or while this key keeps none, forgets them. - A file that a newer Lokyr wrote, or that cannot be read, is left aside, as a notice tells, and Lokyr opens a new window, as without it.
- It applies as you quit, and at the next start.
restore-scrollback
Platforms: macOS · Since 1.5
Whether the panes that open again with your windows show what they showed as you quit: their text, its colors and styles, its links, and the commands that your shell marked.
| Values | Default |
|---|---|
true, false | false |
- It applies while the windows open again, as
restore-windowssays: with no window kept, there is no scrollback to show either. - Each pane shows its scrollback and its screen as they were, up to the prompt where you typed, then a line that tells when they were kept, then a new shell's prompt. The commands' marks in the gutter, the blocks and the jumps between prompts work on the restored commands too, of their exit status, their command line and their times.
- Lokyr keeps all that the pane held within its
[scrollback] limit, in a file of each pane in~/Library/Application Support/lokyr/state/scrollback/on macOS, readable by your account alone. A pane full at the default limit takes some 1.4 MB on disk and 12 ms of the quit. At the next start each pane reads its file on its own thread, so that the window opens as soon as it would without them, and the rows show a few milliseconds later. As the panes share the scrollback'sbudget, all of them together take no more than some ten full ones. - What a program showed on its own screen, as vim or less, is not kept: the pane shows what the shell had printed before it. Images are not kept either.
- It is off by default, as what the panes showed may hold what you would not keep, such as a token that a command printed. Turned off again, it keeps none, and takes away at once what was kept.
- It applies as you quit, and at the next start.
[updates]
Lokyr's own updates: it checks for a newer version, which it shows in a window with what is new, to install now or as Lokyr quits, or to skip.
check
Platforms: macOS
Whether Lokyr checks for a newer version now and then, once a day at most, in the background.
| Values | Default |
|---|---|
true, false | true |
- Lokyr › Check for Updates… checks at once, whatever the key says.
- When the config file has an error as Lokyr starts, or names a font that is not installed, Lokyr takes the defaults but does not check for updates, as the file may have turned the checks off; it checks as the file says once you save it without its error.
- A check asks Lokyr's site,
lokyr.dev, for the list of its versions. It sends the version of Lokyr that you have, and what any request sends, your address and your preferred languages; nothing else about you or your Mac. - The updates' window has its own box to check automatically: the key wins over it the next time Lokyr starts, or as you save the file.
- Lokyr updates itself in its app,
Lokyr.app, as installed from its disk image. Lokyr built from its sources, ascargo runruns it, has no updater: the menu's item is dimmed, and the key does nothing. - It applies at once, as you save the file.
[debug]
What Lokyr shows of its own work, to see how it does: for now, a panel of its performance.
performance-overlay
Platforms: macOS
Whether a panel over each window shows Lokyr's performance, a line each: the frames that the window shows a second; the CPU's time of its frames, their median and the longest over the last second; how long a frame waited for the display to give back an image to draw into, which macOS keeps two of; the GPU's, their mean and the longest, of every window's frames; Lokyr's wakeups a second, and those that brought the processor out of idle; its memory, as macOS counts it against Lokyr; and the output of its programs, in MB a second. The first second shows Measuring…, as does a window's that opens while the panel shows.
| Values | Default |
|---|---|
true, false | false |
- View › Show Performance shows and hides it too, until Lokyr quits or the key changes.
- While it shows, it changes each second, which wakes Lokyr and draws each window once a second, even when nothing else changes: Lokyr is no longer idle. Measure Lokyr with it hidden.
- While it shows, Lokyr writes its numbers to its log too, a line a window each second.
- It applies at once, as you save the file.
performance-corner
Platforms: macOS
The corner of the window that the panel takes, under the titlebar at the top.
| Values | Default |
|---|---|
"top-right", "top-left", "bottom-right", "bottom-left" | "top-right" |
- It applies at once, as you save the file.
[keys]
The bindings of keys, of the wheel and of the mouse's click, to Lokyr's commands, over the defaults. A key that a binding takes runs its command, and never reaches the program; the others go to the program, as they always do, but in the copy mode, where they go nowhere.
Bindings
Platforms: macOS
Each entry of the section is a binding: its name is the keys, in quotes, and its value the command that they run.
[keys]
"cmd+shift+n" = "window.new"
"ctrl+a>n" = { command = "window.new", when = "!alternate-screen" }
"cmd+q" = false
- The keys: modifiers, each followed by
+, and the key:cmd+shift+n.- The modifiers are
cmd,ctrl,altoropt, andshift;commandandsuperarecmdtoo,controlisctrl, andoptionisalt. - The key is the character that it types without any modifier, Shift neither, as
]incmd+shift+], or+incmd++; a character that the US layout types with Shift, of noshift, is its key with Shift, so thatcmd+}andcmd+shift+]are the same keys, one entry's; or a named key:enter,tab,backspace,escapeoresc,space,delete,insert,home,end,pageup,pagedown,up,down,left,right,f1tof35; or a step of the wheel,wheel-up,wheel-down,wheel-leftorwheel-right, which a trackpad's scroll makes too, a step a row; or the left button's click,click, ascmd+click. - Your keyboard layout gives the characters. A key whose character no binding takes runs the binding of the character at its place on the US layout, when its own is past ASCII, as
èon the Italian layout runscmd+[, or when both are punctuation, as the Italian+runscmd+], so that keys that take Option on your layout still work. An ASCII letter or digit is always yours: on AZERTY, Command-A iscmd+a, never thecmd+qat its place on the US layout. - Two entries of the same keys, written two ways, as
alt+xandopt+x,cmd+shift+nandshift+cmd+n, orcmd++andcmd+shift+=, read: the later of the file holds, and the notice's card at the windows' top right tells them until one goes.
- The modifiers are
- A sequence of keys, each after the one before, parts them with
>:ctrl+a>nis Control-A, then N. After the first keys, Lokyr waits for the next one, as long as it takes; a key that no sequence goes on with goes to the program, with the keys before it, as does a key that no binding can name, as the keypad's, and the input method's text. A step of the wheel, or a click, makes no sequence. - A global key, written after
global:, as"global:ctrl+`", runs its command from every app, Lokyr's windows too, as macOS gives Lokyr the key without the Accessibility permission, and takes it from them.- It is one key with
cmd,ctrloralt, or a function key, alone or with any of them; no sequence, no step of the wheel, no click. - It goes by its place on the keyboard, the US layout's, whatever your layout types there:
`is the key left of 1, or right of the left Shift on some keyboards. A character is the one that its key types without Shift:~isshift+`; a character that the US layout types with Shift, or has no key for, asè, is an error. - Its value is a command, or a table without
when, which holds everywhere; a global key has no default, nor afalse. - A key that another app holds as its own alone, or that the Mac's keyboards lack, as
f24, shows in the notice's card at the windows' top right, until the config takes it away. An app that took the key without holding it alone cannot be told, and the key then reaches one of the two. - Lokyr stays open as its last window closes, as
quit-after-last-window-closedhas it by default, so that the key still works. Withtrue, Lokyr quits all the same, and the key with it.
- It is one key with
- The value:
- a command, as
"window.new"; - a table with the
command, itsargs, as{ command = "tabs.goto", args = { index = 1 } }, and its context,when; - an array of such tables, for the keys in several contexts;
false, which takes away the defaults of the keys.
- a command, as
- The context,
when, says when a binding holds: the namespane.focused,selectionandalternate-screen, and those of the plugins' panels, with!,&&,||and parentheses, aspane.focused && !selection. A binding withoutwhenholds everywhere. An expression nests 32 levels deep at most.pane.focusedholds while the pane has the keyboard, and not while a panel's field or button has it;alternate-screenwhile a program such as vim or less shows its own screen.- A plugin's panels, as the find bar, take the plugin's namespace:
search.openholds while one of them shows, andsearch.focusedwhile one of them has the keyboard, as"enter" = { command = "search.next", when = "search.focused" }. Each panel takes its own id too, after the namespace, so that a binding holds of one of a plugin's panels alone:search.find.focusedwhile the find bar has the keyboard,search.find-all.openandsearch.find-all.focusedof Find in All Tabs · Since 1.6. A panel of a pane behind another tab, or behind a zoomed pane, does not show. A plugin that selects a block of the pane that has the keyboard, as Blocks does of ⌘↑, takesblocks.selectedtoo, which holds while the block is selected · Since 1.4. The copy mode's badge is a panel too: its keys hold incopy-mode.open && pane.focused, as"x" = { command = "copy-mode.act", args = { action = "exit" }, when = "copy-mode.open && pane.focused" }. A name of a plugin not installed reads, and never holds;pane,selectionandalternate-screenhave no names but these.
- Which binding wins: of those of the keys that hold, the last; your bindings come after the defaults.
- A key that a binding takes runs its command again as it repeats, held down, and its release reaches nothing.
- A click that a binding takes, a single one in the window that has the focus, runs its command before the selection, the menu of a Control click and the program; a command that takes the arguments
columnandrowgets the cell under the pointer: its column, from0at the left, and the number of its row, which stays that row's as output scrolls it into the scrollback and the view scrolls, as the window showed it. - The menus show each command's keys: of its bindings of one key, without arguments and without
when, the first whose key no later binding takes. A menu's item takes its key before the program; a dimmed item, as Copy without a selection, takes none, and the key goes on to the bindings. A command that needs an argument, aspane.send-text, has no item. - A binding of yours of a command that does not exist reads, takes its keys, and tells it in the log when you press them, as a plugin's commands come once the plugin starts.
Commands without keys of their own, for your bindings:
pane.send-textsends itstextto the program as it is, its control characters too, as keys that typed it would, which can run commands; the view comes back to the screen. In the TOML string,\u0017writes Control-W, and\u001bEscape.window.toggle-quick-terminalshows the quick terminal, or hides it, as[plugins.quick-terminal]says: bound to a global key, from every app. Shell › Quick Terminal runs it too.tabs.renamegives the tab itstitle, in place of its program's; without one, as Shell › Rename Tab… runs it, it asks you for it, and an empty one gives the tab its program's back.tabs.set-colorgives the tab itscolor, as"#ff8800", in place of the one that its program set; an empty one gives the program's back.tabs.detachmoves the tab out to a window of its own, as Shell › Move Tab to New Window does.
For the keys of a shell's line editing, as macOS's text fields have them:
[keys]
"alt+backspace" = { command = "pane.send-text", args = { text = "\u0017" } } # the word before: Control-W
"cmd+backspace" = { command = "pane.send-text", args = { text = "\u0015" } } # to the line's start: Control-U
"cmd+delete" = { command = "pane.send-text", args = { text = "\u000b" } } # to the line's end: Control-K
"alt+delete" = { command = "pane.send-text", args = { text = "\u001bd" } } # the word after: Esc d
"alt+left" = { command = "pane.send-text", args = { text = "\u001bb" } } # a word back: Esc b
"alt+right" = { command = "pane.send-text", args = { text = "\u001bf" } } # a word on: Esc f
"cmd+left" = { command = "pane.send-text", args = { text = "\u0001" } } # the line's start: Control-A
"cmd+right" = { command = "pane.send-text", args = { text = "\u0005" } } # the line's end: Control-E
deleteis the key that deletes forward, fn-⌫ on a laptop's keyboard.- zsh's Control-U deletes the whole line, where bash's and fish's delete to its start;
bindkey '^U' backward-kill-linein~/.zshrcmakes zsh's delete to the start.
The defaults, of the built-in plugin keymap-macos, the shortcuts of macOS's apps:
- Your bindings come after them, and win;
falsetakes a default away. [plugins.keymap-macos] enabled = falsetakes them all away, so that your[keys]bind every key from nothing: the menus keep the system's own keys alone, ⌘H to hide Lokyr, ⌥⌘H to hide the others, ⌘M to minimize the window, and ⌃⌘Space for the emoji and symbols.- A default of a command that is not there, as one of a plugin turned off, takes no key: with
[plugins.links] enabled = false, a ⌘-click selects, as a click does.
| Keys | Command | What it does |
|---|---|---|
cmd+, | app.settings | Opens the config file in your text editor, made first of every key commented out when there is none, as The file says |
cmd+n | window.new | Opens a window |
cmd+w, cmd+shift+w | window.close | Closes the window, of all its tabs, cmd+w closing the tab instead while the tabs' plugin runs; while a program other than a shell runs in it, as vim or ssh, it asks you first, as closing ends the program: a job that the shell runs counts too, stopped with Control-Z or in the background, and a program that started a shell, as vim's :sh. tmux and screen, whose sessions go on, do not ask, nor a shell at its prompt, nor one that a shell started |
cmd+shift+i | window.set-title | Asks for a title of the window's, which takes the place of the program's and of the window's own until you empty it; the grid's size stays after it, as title-size says |
cmd+` | window.next | Brings forward your next window of the session that shows, in the order that they opened, the settings window too and not the quick terminal, the first after the last: the key left of 1 by its place, as macOS's, ⌘\ on the Italian layout; Window › Cycle Through Windows runs it too |
cmd+shift+` | window.previous | Brings forward the previous window, the last before the first |
ctrl+cmd+s | command-palette.sessions | Opens the sessions' switcher in the palette: the sessions open, the one that shows marked Current, then the folders of [sessions] folders and those where your shells worked last; Return switches to the session, or opens one in the folder, named after it, or switches to the one opened there already; Window › Sessions › Switch Session… runs it too · Since 1.5 |
ctrl+cmd+l | window.switch-to-last-session | Switches to the session that you used before the one that shows: its windows show where they were, the one that you used last in front, and the others hide, their programs running; Window › Sessions › Switch to Last Session runs it too · Since 1.5 |
alt+cmd+i | window.broadcast-to-tab | Sends what you type into the pane with the keyboard to every pane of its tab too, each as its own program takes it, a ring round each; again, to that pane alone · Since 1.5 |
shift+alt+cmd+i | window.broadcast-to-window | Sends what you type into the pane with the keyboard to every pane of the window too, of all its tabs; again, to that pane alone · Since 1.5 |
shift+alt+cmd+f | pane.new-floating | Floats a new pane over the tab's panes, its shell in the folder of the pane with the keyboard · Since 1.5 |
alt+cmd+f | pane.toggle-floating | Shows the tab's floating panes, or hides them; of a tab of none, floats a new one · Since 1.5 |
alt+cmd+1, alt+cmd+2, alt+cmd+3, alt+cmd+4, alt+cmd+5, alt+cmd+6, alt+cmd+7, alt+cmd+8, alt+cmd+9 | window.goto | Brings forward the window of that number, index, from 1: each window takes, as it opens, the lowest number that no other window of its session has, which its titlebar shows, as title-shortcut says; the quick terminal has none. Bound by you, as { command = "window.goto", args = { index = 10 } }, it reaches past the ninth |
shift+alt+cmd+a | command-palette.agents | Opens the palette's list of the AI agents of every window, the most urgent first, of each one's message or tab, its state and how long it has been in it; Return brings the chosen one's pane forward; Window › Show Agents… runs it too |
alt+cmd+a | window.next-agent | Brings forward the next tab, in any window, whose AI agent waits for you; or, of none, whose agent is done; or, of none, at work, as [agents] tells; Window › Go to Next Agent runs it too |
cmd+q | app.quit | Quits Lokyr, asking you first while programs other than shells run in its windows; so does Quit in the Dock, and a logout waits for your answer |
cmd+c | pane.copy | Copies the selection |
cmd+v | pane.paste | Pastes the clipboard's text, asking you first when confirm-paste says so |
cmd+a | pane.select-all | Selects the scrollback and the screen, to the last row that shows something |
shift+cmd+a | pane.select-output | Selects the output of the last command that ended, of the commands that the shell marks; Edit › Select Command Output, and the pane's context menu of the command under the pointer, run it too |
shift+alt+cmd+c | pane.copy-output | Copies the output of the last command that ended, its wrapped rows joined; Edit › Copy Command Output, and the context menu of the command under the pointer, run it too |
cmd+k | pane.clear | Clears the scrollback and the screen but the prompt, which goes to the top; on the screen of a program such as vim, it does nothing |
cmd+=, cmd++ | font.bigger | Makes the text a point larger, in every window, up to 200 |
cmd+- | font.smaller | Makes the text a point smaller, down to 4 |
cmd+0 | font.reset | Gives the text the size of size again |
alt+cmd+; | window.toggle-cursor-guide | Shows the cursor guide, a band across the cursor's row, or hides it, in every window, as View › Show Cursor Guide does, until guide changes |
cmd+u | window.toggle-opacity | Shows the window in front opaque, of a translucent background-opacity, or translucent again, as View › Use Transparency does · Since 1.3 |
cmd+shift+e | links.hints | Labels what the pane shows that you may pick, as View › Show Hints does: URLs, paths, git's hashes, IP addresses and your hints · Since 1.3 |
shift+cmd+up | pane.scroll-line-up | Scrolls the view a line up |
shift+cmd+down | pane.scroll-line-down | Scrolls the view a line down |
cmd+up | pane.prompt-previous | Scrolls the view to the prompt above its top, of the commands that the shell marks, as shell-integration has it, the prompt at the view's top |
cmd+down | pane.prompt-next | Scrolls the view to the prompt below its top, or to the screen past the last |
cmd+up | blocks.select-previous | While Blocks runs, in place of pane.prompt-previous: jumps to the prompt above the view's top and selects its block, which a tint shows; with a block selected, selects the one before · Since 1.4 |
cmd+down | blocks.select-next | While Blocks runs, in place of pane.prompt-next: jumps to the prompt below the view's top and selects its block; with a block selected, selects the one after, or, past the last, none, back to the screen · Since 1.4 |
up | blocks.select-previous | While a block is selected: selects the block before, the view at its top · Since 1.4 |
down | blocks.select-next | While a block is selected: selects the block after, or, past the last, none, back to the screen · Since 1.4 |
escape | blocks.deselect | While a block is selected: selects none, as a key typed or a click in the pane does · Since 1.4 |
cmd+pageup, shift+pageup | pane.scroll-page-up | Scrolls the view a page up |
cmd+pagedown, shift+pagedown | pane.scroll-page-down | Scrolls the view a page down |
cmd+home | pane.scroll-top | Scrolls the view to the scrollback's first row |
cmd+end | pane.scroll-bottom | Scrolls the view back to the screen |
cmd+click | links.open | Opens what you click: the link that the program gave the text, or the URL or the path that the text holds there. A URL is of http, https, mailto or file; a path starts from /, from ~, or from the directory of the program in the foreground, as ls lists files, and compilers and grep -n write a line after it, as src/main.rs:42:7; between quotes, a path that is there can have spaces, as git status and Python write one, and a URL ends at a space. A URL or a file asks you first, as [links] says; a folder opens in the Finder; a program, an application or a script that would run shows in the Finder, selected, and does not run. While you hold Command, the link under the pointer that would open is underlined, and the pointer over it is the pointing hand, as you move over it or press Command with the pointer still, and goes as the program changes its text, or the view scrolls it from under the pointer |
cmd+f | search.open | Opens the find bar at the top right of the pane, of your last search's text, selected, its field taking the keys, as [plugins.search] tells |
cmd+g | search.next | Makes the next match of the find bar's search the current one, the one above, the last after the first, and brings it into the view; it opens the bar while it is closed |
cmd+shift+g | search.previous | Makes the previous match the current one, the one below, the first after the last |
cmd+shift+f | search.find-all | Opens Find in All Tabs at the window's top: as you type, it searches every pane of the session's windows, of the find bar's options, which its toggles share, each match a row of its line and its tab's title, 1000 at most; Return brings the match's pane forward, the match selected, and opens the find bar there of the text, the match its current one; it closes the find bar as it opens, and the find bar's opening closes it; Edit › Find in All Tabs… runs it too · Since 1.6 |
cmd+shift+p | command-palette.open | Opens the command palette, whose field ranks the commands as you type |
up, down | command-palette.move | In the command palette, while its field has the keys: moves the selection up or down the list |
up, down | search.move | In Find in All Tabs, while its field has the keys: moves the selection up or down the list · Since 1.6 |
tab, shift+tab | links.hints-action | While the hints show, as their field has the keys: moves what a pick does through open, copy, type and select, and back · Since 1.3 |
cmd+shift+c | copy-mode.toggle | Starts the copy mode in the pane, or ends it, as Edit › Copy Mode does: a cursor of its own, at the terminal's, or at the view's last row while the view is up in the scrollback, which the keys below move and select with, through the scrollback and the screen, without the mouse; a badge at the pane's bottom right tells the mode. While it runs, the keys that no binding takes go nowhere, rather than to the program, and ⌘C copies its selection, as always. It ends as another pane of the tab takes the keyboard, as a program such as vim shows its own screen, where it does not start, and as a resize lays the rows out anew; a click on the badge ends it too |
h, left, l, right, k, up, j, down | copy-mode.move | In the copy mode: moves its cursor a cell left or right, or a row up or down, to left, right, up or down, as far as the scrollback's first row and the screen's last; the view follows the cursor |
w, b, e, shift+w, shift+b, shift+e | copy-mode.move | To the next word's start, word-next, the start of the word before, word-previous, or the word's end, word-end: a word is of letters, digits and _, or of punctuation; with Shift, of anything but blanks, big-word-next, big-word-previous and big-word-end. A line's end parts two words, and a row that wraps does not |
home, shift+6, shift+4, end | copy-mode.move | To the line's start, line-start, its first character but a blank, line-first, as ^ types it on the US layout, or its last but a blank, line-end, as $: of the whole line that the program wrote, across the rows that it wraps over; 0 goes to its start too, before a count |
g>g, shift+g | copy-mode.move | To the scrollback's first row, top, or to the last row that shows something, or to the terminal's cursor's, which is later, bottom |
shift+h, shift+m, shift+l | copy-mode.move | To the view's top row, view-top, its middle one, view-middle, or its bottom one, view-bottom |
ctrl+u, ctrl+d, ctrl+b, pageup, ctrl+f, pagedown | copy-mode.move | Half a page up or down, half-page-up and half-page-down, or a page, page-up and page-down, the view scrolling with the cursor |
shift+[, shift+] | copy-mode.move | To the blank line before the paragraph, paragraph-previous, as { types it on the US layout, or after it, paragraph-next, as } |
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 | copy-mode.count | A count of the next move, its digit after those before, as 12j moves 12 rows down, which the badge shows until the move |
v, shift+v, ctrl+v | copy-mode.select | Starts a selection at the cursor, of the cells in reading order, cells, of whole lines, lines, or of a block of columns, block, which then goes from there to the cursor as it moves; the same key takes it away, and another changes its kind |
o, y, enter, shift+y, escape, q, ctrl+c | copy-mode.act | Its action: o swaps the selection's ends, swap; y and enter copy the selection, or the cursor's line without one, and end the mode, the selection staying, copy; shift+y copies the cursor's line and ends, copy-line; escape takes the count away, or else the selection, or else ends, back; q and ctrl+c end, the selection taken away, exit. A line's copy leaves the blanks at its end out |
cmd+t | tabs.new | Opens a tab in the window, after its others, which shows it; its shell starts in the folder of the pane that has the keyboard, as new-directory says |
cmd+shift+t | tabs.reopen | Brings back the tab that you closed last, at its place, as you left it, within reopen-seconds of its close; again, the one before · Since 1.3 |
cmd+w | tabs.close | Closes the tab, or its pane while the tab has splits or floating panes, hidden ones too; while a program other than a shell runs there, it asks you first, as closing the window does; the window's last tab closes the window, which cmd+shift+w closes whole |
cmd+shift+] | tabs.next | Shows the next tab, the first after the last |
cmd+shift+[ | tabs.prev | Shows the previous tab, the last before the first |
ctrl+tab | tabs.switch | Shows the tab that you used before, and, as you press Tab again with Control held, the one before that; the tab that shows as you release Control is the one used last; or the next tab, as control-tab says |
ctrl+shift+tab | tabs.switch-back | The other way: the tab used longest ago, then the one used after it; or the previous tab |
cmd+1, cmd+2, cmd+3, cmd+4, cmd+5, cmd+6, cmd+7, cmd+8, cmd+9 | tabs.goto | Shows the tab of that number, index, from 1 at the left; a number of no tab does nothing |
cmd+shift+left, cmd+shift+right | tabs.move | Moves the tab a place to the left or to the right, delta of -1 or 1, as far as the bar's ends |
cmd+d, cmd+shift+d | splits.split | Splits the pane, direction right or down: the new pane, beside it or below it, takes the keyboard |
alt+cmd+left, alt+cmd+right, alt+cmd+up, alt+cmd+down | splits.focus | Gives the keyboard to the pane beside, direction left, right, up or down: the nearest, of the most room along the side, the first of a tie; none at the tab's edge, nor while a pane is zoomed |
cmd+] | splits.focus-next | Gives the keyboard to the tab's next pane, the first after the last |
cmd+[ | splits.focus-prev | Gives the keyboard to the tab's previous pane, the last before the first |
ctrl+cmd+left, ctrl+cmd+right, ctrl+cmd+up, ctrl+cmd+down | splits.resize | Moves a divider of the pane a cell, cells of 1, towards direction: the one on its right, or its bottom, where it has one, the other otherwise |
cmd+shift+enter | splits.zoom-toggle | Has the pane take the tab's whole room, or gives the others theirs back |
[triggers.<name>]
Platforms: macOS · Since 1.7
Patterns of the programs' output that Lokyr looks for in each line as it completes, each a table of a name of your choice, [triggers.<name>], of a regex, pattern, and of what a match does, action.
# A compiler's errors, highlighted.
[triggers.errors]
pattern = 'error(\[E\d+\])?:'
action = "highlight"
- A line is matched as a line feed ends it: a line that wraps is one line, of its first 4096 characters. A line that a program ends again in place of other text is matched again, of the same text not, as a status that it draws again; a line that has not ended yet is not matched, as a prompt that waits for you. Lines that come in a burst are matched as the burst leaves them, and those that a program's scroll region drops within the burst not at all.
- Each trigger matches on its own: two triggers can match the same text, and each does what it says; of two highlights, the one whose name comes first draws over the other.
- The screen of a full-screen program, such as less, vim or htop, isn't matched: a trigger looks at the output that scrolls in the terminal, as a build's, a log's tail or a command's.
- A wrong trigger, of a pattern that does not compile, a key that it lacks or has wrong, is ignored alone, the others hold; the notice's card tells it at its line.
- None costs nothing: without a trigger that matches, nothing looks at the output.
- Reloading: as you save the file, the triggers apply to the lines that complete from then.
- The settings window: its Settings page's Triggers section adds, renames, edits and removes them, its choices of pop-up buttons and
enabledof a switch, writing each as a table of its own and keeping the file's comments; a command'sargsyou write in the file, which the page keeps.
pattern
Platforms: macOS · Since 1.7
The regex that each line of the programs' output is matched against, as it completes.
| Values | Default |
|---|---|
| a regex, of 1 to 256 characters | none: every trigger has one |
- The regex is the find bar's, of Rust's
regexsyntax:\da digit,\ba word's edge,(...)a group,^and$the line's start and end,(?i)case that does not count. - Between single quotes, TOML keeps its backslashes as they are:
'error\[E\d+\]'; between double quotes, each is doubled. - A line that wraps is matched whole, across its rows, of its first 4096 characters; the spaces that end it go.
- A pattern that does not compile refuses its trigger alone, as the notice at its line tells.
action
Platforms: macOS · Since 1.7
What a match does.
| Values | Default |
|---|---|
highlight, notify, mark, command | none: every trigger has one |
highlightdraws the match's text under the color ofcolor, which stays as the rows scroll, and goes with them.notifytells the matched line in a notification while the pane's window is not in front, or in Lokyr's card while it is, oftitle, once a second at most; while Lokyr is behind another app, the Dock's icon bounces once, and its badge counts the notifications until you come back.markmarks the line in the gutter, of the theme'strigger.mark, and ⌘↑ and ⌘↓ stop at it as at a prompt, while Blocks is off.commandruns the command ofcommand, of itsargs, as a key bound to it would, while the pane has the keyboard in the window in front alone, once a second at most.
case
Platforms: macOS · Since 1.7
Whether case counts in the pattern.
| Values | Default |
|---|---|
smart, sensitive, insensitive | smart |
smartcounts case only where the pattern has a capital letter, as the find bar does:errormatchesErrorandERROR,ErrormatchesErroralone.
enabled
Platforms: macOS · Since 1.7
Whether the trigger matches.
| Values | Default |
|---|---|
true, false | true |
falsekeeps the trigger in the file, matching nothing.
color
Platforms: macOS · Since 1.7
Of action = "highlight": the color that the match's text shows under.
| Values | Default |
|---|---|
a theme's token, as "accent" or "search.match", or "#rrggbb" | "trigger.highlight" |
- A token follows the light and the dark appearance, as the theme has it;
trigger.highlightis the theme's, a translucent yellow by default.
title
Platforms: macOS · Since 1.7
Of action = "notify": the notification's title, its text the matched line.
| Values | Default |
|---|---|
a text, of 256 characters at most, $1 to $9 the match's groups, $$ a $ | the trigger's name |
- A trigger notifies once a second at most; the matches within the second tell nothing.
command
Platforms: macOS · Since 1.7
Of action = "command": the command that a match runs, as a key bound to it would, of its args.
| Values | Default |
|---|---|
a command's name, namespace.action, as the palette lists them | none: a trigger of command has one |
- It runs while the pane that matched has the keyboard in the window in front alone, so that output in a pane behind never acts on another; a match elsewhere runs nothing, as the log tells.
- It runs once a second at most, a match within the second running nothing: a command that writes a line that its trigger matches again at once, as
pane.send-textof a text that the shell echoes, runs once. A trigger that runs its command 10 times within 10 seconds pauses until you save the config again, as the notice's card tells. - The match's groups do not go into the arguments, so that output never chooses what runs.
args
Platforms: macOS · Since 1.7
Of action = "command": the command's arguments, as a key's binding has them.
| Values | Default |
|---|---|
a table of texts, numbers and booleans, as { text = "y\r" } | none |
[plugins.<namespace>]
Platforms: macOS
A plugin's own keys, in a section of its namespace: the plugin's name after its owner, as [plugins.tabs] of lokyr/tabs. Each plugin tells its keys, as the tab bar's do in [plugins.tabs].
[plugins.tabs]
position = "top"
-
Its keys are those of the plugin's schema, the JSON Schema file that its manifest names, with their values and their defaults: a key left out takes its default, and a section left out gives all of them.
-
A wrong value, of another type or none of its choices, or a number that is not finite, as
nanorinf, refuses that plugin's section alone: the plugin keeps the keys in force, its defaults at the start, and the rest of the file applies. So does a value in the section's place, astabs = falseunder[plugins]:enabled = falsein[plugins.tabs]turns a plugin off · Since 1.6.1 The notice's card tells the error at its line, until you save a section that the plugin takes:lokyr: error 109 (usage): /Users/you/.config/lokyr/config.toml:12:1: `position` is one of "top", "bottom", not "middle" in `[plugins.tabs]`; the plugin `lokyr/tabs` keeps its config in force -
What another version would know is ignored, as the bar tells: the section of a plugin that is not installed, and a key that the plugin's schema lacks, as one of a newer version, so that one file serves two Macs; but where the schema says what its other keys take, its
additionalProperties, they are checked against it, and refused offalse. -
Reloading: as you save the file, each plugin takes its section anew, and hears of a change.
-
lokyr +validate-configchecks the file's own keys and the sections' form, each a table of keys, a section refused told, andlokyr +show-configprints the sections as the file has them; their keys apply as the plugins take them, once Lokyr runs.
enabled
Platforms: macOS
Whether the plugin runs: false turns it off, any plugin, the built-in ones too, whatever its keys.
| Value | Meaning |
|---|---|
true | The plugin runs, as by default, but of a plugin that starts off, as Blocks |
false | The plugin is off: its commands, its keys, its bars and its panels go, and the program's text loses its marks |
Default: true; false of a built-in plugin that starts off, [plugins.blocks] of Blocks.
- It applies as you save the file: a plugin turned off stops at once, and one turned on again starts anew.
- Lokyr › Plugins… writes it too: Disable writes
enabled = false, keeping the rest of the file and its comments; Enable takes the key away, astrueis its default, and the section with it if nothing else is left of it; a plugin removed there takes its key away the same way, once Lokyr no longer runs it. Of a plugin that starts off, as Blocks, Enable writesenabled = trueand Disable takes the key away. - The plugin's other keys are not checked while it is off.
[plugins.core-actions] enabled = falsetakes away the terminal's own actions, as copy, paste, select all and the text's size, with their keys.[plugins.keymap-macos] enabled = falsetakes away the default shortcuts, as[keys]says, the menus keeping the system's own keys alone.- A value other than
trueorfalseshows in the bar, and the plugin stays as it is.
[plugins.tabs]
Platforms: macOS
The tab bar of the built-in plugin lokyr/tabs: each window's tabs, each of its title, its color, the keys that select it and its close button, and a button of a new tab. A click on a tab shows it, on its close button closes it, asking you first while a program other than a shell runs there. A tab's title is the one that you give it with Shell › Rename Tab…, or its program's, or its folder and the program in its foreground, as src — vim.
position
Platforms: macOS
Where the bar goes.
| Values | Default |
|---|---|
"top", "bottom", "left", "right" | "top" |
- At the top, as
styleputs it; at the bottom, across the window's bottom, below the status bar, under a titlebar of the window's title; on the left or the right, a column from below the titlebar to the window's bottom, its tabs one below another, as wide ascolumn-widthsays, or as you drag its edge. - On the left, in the
"unified"and"seamless"looks, the column runs up through the titlebar, as macOS's sidebars do: the window's buttons stand over its top, the keys that bring the window forward after them, and the panes beside it start below the titlebar, with no title. You drag the window by the column's top, beside the window's buttons, and by the titlebar over the panes. - It applies at once, as you save the file.
style
Platforms: macOS
The bar's look.
| Values | Default |
|---|---|
"standard", "unified", "seamless" | "unified" |
"standard"puts the bar in a strip below a titlebar of the window's title: the tabs side by side in a rounded track, of equal widths, each its title and its keys in its middle, the one shown raised over the track, of a border and a shadow; the button of a new tab a circle after the track."unified"puts the same tabs in the titlebar, past the window's buttons and the keys that bring the window forward, astitle-shortcutshows them; the one shown is of its background alone, without a border or a shadow, the one border round a tab being its program's progress."seamless"puts the tabs in the titlebar too, past the window's keys, which keep the titlebar's background, as cells of the titlebar's height, a line between two. The one shown has the window's own background, translucent and blurred asbackground-opacityandbackground-blurmake it, and opens onto the terminal below it; the others are a little darker, over a line. Each has its title in its middle, its color and its keys at its end, and the button of a new tab is a cell of its own.- At the bottom, each look keeps its tabs, under a titlebar of the window's title; down a column, the tabs are rows, the one shown raised, with rounded corners and a border in
"standard"and round ends of its background alone in"unified", or of the window's background in"seamless", with the rest of the column a little darker; the button of a new tab is a row of its own, its sign in its middle. - A title too long for its tab ends in an ellipsis. A tab's background lightens under the pointer and darkens as you press it, fading in and out, at once where the system reduces motion; its close button shows at its start.
- It applies at once, as you save the file.
hide-when-single
Platforms: macOS
Whether the bar hides while the window has a single tab.
| Values | Default |
|---|---|
true, false | true |
- Hidden, the bar takes no room, and the window shows its tab's title in its titlebar, in its middle, with the tab's marks beside it: the lock of the protected input, the bell, and the dots of a program that runs; none in full screen, where the window has no titlebar.
- It applies at once, as you save the file.
show-index
Platforms: macOS
Whether each of the first nine tabs shows the keys that select it, as ⌘1.
| Values | Default |
|---|---|
true, false | true |
- The keys are those that your
[keys]bind totabs.gotoof the tab's number,cmd+1tocmd+9by default; a tab of no binding shows none. - It applies at once, as you save the file, and as your
[keys]change.
close-button
Platforms: macOS
When a tab shows its close button.
| Values | Default |
|---|---|
"always", "hover", "never" | "hover" |
"hover"shows it while the pointer is over its tab, fading in and out.- It applies at once, as you save the file.
column-width
Platforms: macOS
The width of the bar's column, on the left or the right, in points.
| Values | Default |
|---|---|
from 60 to 600 | 200 |
- A drag of the column's edge changes its width, which Lokyr keeps for its next start; a new value in the file takes the drag's place, at once or at the next start, as the file changes while Lokyr is closed too.
- It applies at once, as you save the file.
control-tab
Platforms: macOS · Since 1.3
What Control-Tab and Control-Shift-Tab step through: the tabs in the order of their use, or in their own.
| Values | Default |
|---|---|
"recent", "order" | "recent" |
"recent"brings forward the tab that you used before, and, as you press Tab again with Control held, the one before that; the tab that shows as you release Control becomes the one used last. Control-Shift-Tab goes the other way, from the tab used longest ago."order"brings forward the next tab of the bar, and Control-Shift-Tab the previous one, as Command-Shift-] and Command-Shift-[ do whatever this says.- It applies at once, as you save the file.
reopen-seconds
Platforms: macOS · Since 1.3
How many seconds a tab that you close stays ready to come back with Shell › Reopen Closed Tab, ⇧⌘T.
| Values | Default |
|---|---|
from 0 to 86400 | 10 |
- While it waits, the tab is out of your window, but its programs keep running and their output is read, so it comes back as you left it, at its place. After its seconds, or when Lokyr quits, it closes for good and its programs end.
- Every tab that you close is kept, with ⌘W, its close button, a middle click or its context menu. A tab whose program ends, the last tab of a window and a window that you close are not, nor a tab that you close while a program other than a shell runs there: Lokyr asks first, and closing it ends the program.
- At most 16 closed tabs wait; closing another closes the oldest for good.
- ⇧⌘T gives back the tab closed last; press it again for the one before.
- A kept tab holds its memory, its scrollback too, until it closes: a few megabytes for a shell, more for a long scrollback.
0keeps none. - It applies to the tabs that you close after you save the file.
[plugins.splits]
Platforms: macOS
The panes of the built-in plugin lokyr/splits: how the panes of a tab of more than one show, and where the keyboard goes. Its commands split a pane, move between panes, resize, zoom and swap them, as the keys of the defaults tell.
look
Platforms: macOS · Since 1.7
How the panes of a tab of more than one show.
| Values | Default |
|---|---|
cards, plain | cards |
cardsshows each pane as a card of rounded corners, the window's background between the cards and round them, the card of the pane that has the keyboard standing out; the gap between two cards is the divider that a drag moves.plainshows the panes edge to edge, a line between two, which a drag moves, and their titles wherepane-titlesasks for them.- A floating pane and a popup float as cards too, of the same header as a card's, its program's icon, its title and its folder, and its ×;
plaingives them the box of before, of a plain title. - A tab of one pane, and a zoomed pane, fill the window either way.
- It applies at once, as you save the file.
icons
Platforms: macOS · Since 1.7
Applies when look is "cards"
The icons of programs of your own in the cards' headers, over Lokyr's: each entry a program's name, as it runs, and one of Lokyr's icons.
| Values | Default |
|---|---|
| a table of programs' names and icons | none |
[plugins.splits.icons]
lazydocker = "kubernetes"
just = "zap"
- A card's header, and a floating pane's, shows the icon of the program in its pane's foreground: yours, of this table, or Lokyr's own, as
rustofcargo,pythonofpython3anduv,nodejsofnode,gitofgitandlazygit,neovimofnvim,dockerofdocker,remoteofsshandmosh,pulseofhtopandtop, andbookoflessandman; an AI agent of[agents] programs, whatever program runs it, its mark,claudeofclaude,openaiofcodex,copilotofcopilot,googleofgeminiandcursorofcursor-agent, or elsesparkle; andterminalof a shell and of any other program. - A program's name is in any case, and a version after it is left out:
python3.12takespython's icon. - An AI agent takes the icon of its own name, as
claude = "hubot", before the one of the program that runs it. - Lokyr's icons are
add,arrow-down,arrow-up,bell,bold,book,browser,bun,c,case-sensitive,check,chevron-down,chevron-left,chevron-right,chevron-up,circle,circle-filled,claude,clear-circle,clippy,clojure,close,cloud-download,coffee,copilot,copy,cplusplus,cursor,dart,database,debug,docker,dotnet,edit,elixir,ellipsis,emacs,erlang,error,extensions,eye-closed,filter,flutter,folder,git,git-branch,github,gitlab,go,google,gradle,haskell,history,homebrew,hubot,info,java,javascript,julia,keyboard,kotlin,kubernetes,layout,layout-panel,lightbulb,link,lock,lua,magnifying-glass,maven,megaphone,mongodb,mysql,nano,neovim,nodejs,npm,ocaml,openai,perl,php,pin,pinned,pnpm,postgresql,pulse,python,r,redis,regex,remote,replace,rocket,ruby,rust,scala,screen-full,search,settings,sparkle,split-horizontal,split-vertical,sqlite,swift,symbol-color,terminal,terraform,text-size,tmux,trash,typescript,vim,warning,whole-word,window,yarn,zap,zig. - An entry of an icon that isn't Lokyr's, or of a name longer than 64 characters, is left out, its program keeping its own icon, and a notice reports it; the others hold.
- It applies at once, as you save the file.
dim-inactive
Platforms: macOS
How much the panes that have not the keyboard fade into their background, in a tab of more than one.
| Values | Default |
|---|---|
from 0 to 1, whole or not | 0.15 |
0leaves them as they are;1hides their text in their background.- The fade brings each pane's text, its lines, its cursor and the backgrounds that its program colors toward its own background, so that a translucent window's background stays as it is; a picture of colors of its own, as an emoji, fades as its opacity, over its faded cell.
- It applies at once, as you save the file.
pane-titles
Platforms: macOS
Applies when look is "plain"
Whether each pane of a tab of more than one shows its title across its top, while look is plain.
| Values | Default |
|---|---|
true, false | false |
- The title is its program's, or its folder and the program in its foreground, as
src — vim, of the text's color in the pane that has the keyboard and of a fainter one in the others. - The header takes its row of the pane's room, which its grid gives up; none while a pane is zoomed, or in a tab of one pane.
- It applies at once, as you save the file.
focus-follows-mouse
Platforms: macOS
Whether the keyboard goes to the pane that the pointer comes over, without a click.
| Values | Default |
|---|---|
true, false | false |
- The pointer's moves wake the app over the panes that have not the keyboard alone, so that it costs nothing while the pointer stays over the one that has it; none moves it while a button is down, as in a selection's drag.
- It applies at once, as you save the file.
[plugins.quick-terminal]
Platforms: macOS
The quick terminal of the built-in plugin lokyr/quick-terminal: a window that a global key slides in from an edge of the screen, over every app, the ones in full screen too, and out again: a terminal at hand from anywhere. Bind its command, window.toggle-quick-terminal, to a key of [keys] that works in every app, with global:, which macOS gives Lokyr without the Accessibility permission, as Bindings says, as "global:ctrl+`" = "window.toggle-quick-terminal" does; Shell › Quick Terminal runs it too, and a double tap of a modifier, as double-tap sets it.
[keys]
"global:ctrl+`" = "window.toggle-quick-terminal"
Pick a key that no other app takes: VS Code, as an example, takes Control- for its own terminal while it is in front. The key shows the quick terminal and gives it the keys; again, it hides it, and the app that had the focus takes it back; shown without the focus, it takes the focus. Its shell runs while it is hidden, so that it shows at once, where [new-directory`](#new-directory) says; closed, as its shell exits, the next key opens a new one.
Hidden, it keeps its shell, its screen and its scrollback, as a window does, and its last frame, so that it shows at once: some ten megabytes of memory at half the screen of a Retina laptop, more on a larger screen. It draws nothing while hidden.
These keys were the section [quick-terminal] before; a file that still has it reads, a notice at its line telling you to move its keys here, which it ignores until then. With enabled = false, the quick terminal goes, its window and its shell with it, and Shell › Quick Terminal too.
position
Platforms: macOS
The edge of the screen that the quick terminal comes from, or its centre, where it fades in and out; it fades in and out in its place too where another display lies past its edge, rather than slide across that display.
| Values | Default |
|---|---|
"top", "bottom", "left", "right", "center" | "top" |
It applies as it shows next.
size
Platforms: macOS
The quick terminal's size: first, how far it reaches into the screen from its edge, its height at the top or the bottom, its width at the left or the right, and its width at the centre; then, after a comma, its length along the edge, its width at the top or the bottom, and its height at the left, the right or the centre.
| Values | Default |
|---|---|
a percentage of the screen's, from "1%" to "100%", or points, as "300px"; a second one after a comma | "50%" |
- A size that does not read takes
"50%", as the log tells. - The screen's part is of its area below the menu bar and beside the Dock, where the quick terminal shows, centred along its edge.
- Without the second, it takes the screen's whole width at the top or the bottom, its whole height at the left or the right, and, at the centre, the first's share of the height, or its points.
- Points are those that macOS lays windows out in, two pixels each on a Retina display; a size past the screen's takes the screen's.
- It applies as it shows next.
screen
Platforms: macOS
The screen that the quick terminal shows on.
| Values | Default |
|---|---|
"main", "mouse", "menu-bar" | "main" |
"main" is the system's main screen, the one of the window in front; "mouse" the screen that the pointer is on; "menu-bar" the one that has the menu bar. It applies as it shows next.
animation
Platforms: macOS
How long the quick terminal slides in and out, in milliseconds.
| Values | Default |
|---|---|
from 0 to 2000; 0 shows and hides it at once | 200 |
With the system's Reduce motion, it shows and hides at once. It applies at once.
autohide
Platforms: macOS
Whether the quick terminal hides as it loses the focus, as you click another app or another of Lokyr's windows.
| Values | Default |
|---|---|
true, false | true |
It applies at once.
double-tap
Platforms: macOS · Since 1.3
A modifier whose double tap shows or hides the quick terminal from any app, as its command does: press the modifier alone and let go of it, twice, from the first press to the second release within the system's double-click interval, as System Settings › Accessibility › Pointer Control sets it.
| Values | Default |
|---|---|
"none", "ctrl", "alt" (Option), "cmd", "shift" | "none" |
- A key, a click, a scroll or a media key while the modifier is held, or between the two taps, makes no double tap, so that Control-C twice, or Control and the wheel to zoom the screen, is no double tap of Control; another modifier with it makes none either.
- To see the modifiers while another app is in front, macOS asks you to allow Lokyr in System Settings › Privacy & Security › Input Monitoring, as you first set this key; until you allow it, a notice tells you where, and the double tap works once you come back to Lokyr. Where macOS gives Lokyr no tap of the modifiers all the same, a notice says so, and Lokyr tries again as you come back to it. Lokyr reads the modifiers alone, never what you type.
- What it costs: while it is set, each press and release of a modifier in any app wakes Lokyr for a moment, off the thread that draws; nothing at rest. With
"none", Lokyr watches nothing. - It applies at once.
spaces
Platforms: macOS
Whether the quick terminal follows you to the Space in front, as you switch Spaces, or stays on the one that it showed on.
| Values | Default |
|---|---|
"move", "remain" | "move" |
It applies as it shows next.
[plugins.search]
Platforms: macOS
The find bar of the built-in plugin lokyr/search. cmd+f opens it at the top right of the pane that has the keyboard, of your last search's text, selected, so that typing replaces it, and its options, which it searches again; as you type, it searches the pane's screen and scrollback, the rows that show first, and counts the matches, as 3 of 12, in a room of its own, which keeps the bar's width, numbers past 9999 short, as 12K. It searches from the bottom up, as the newest output is at the bottom: enter, cmd+g and the bar's up arrow select the next match, the one above; shift+enter, cmd+shift+g and its down arrow the previous one, the one below. Every match that shows is highlighted, the current one in a color of its own, and the current one comes into the view, which stays there while the program prints on. escape, or its close button, closes it: the highlights go, and the current match is your selection, ready for cmd+c. The toggles at its field's end count case, match whole words alone, and take the text as a regex, which the next search keeps; the magnifying glass at its start lists your recent searches, which Lokyr keeps.
case
Platforms: macOS
Whether case counts while the case toggle is off, of the find bar and of Find in All Tabs, which share it; on, it always counts.
| Values | Default |
|---|---|
smart, insensitive | smart |
smartcounts case of a text of a capital letter, and not otherwise:errorfindsError, andErrordoes not finderror;insensitivenever counts it.- The toggles, of case, whole words and regular expressions, of the syntax of Rust's
regex, keep their states from one search to the next, as Lokyr keeps them, Find in All Tabs' too; a text that is no valid regular expression tells so in the bar, and finds nothing. - It applies at the next search, as you save the file.
highlight-all
Platforms: macOS
Whether every match that shows is highlighted, besides the current one.
| Values | Default |
|---|---|
true, false | true |
- The current match is highlighted either way, in its own color, and selected as the bar closes.
- It applies at once, as you save the file, to an open find bar too.
wrap-around
Platforms: macOS
Whether a step past the last match goes on from the first, and past the first from the last.
| Values | Default |
|---|---|
true, false | true |
- Without it, a step past either end stays there.
- It applies at once, as you save the file.
[plugins.command-header]
Platforms: macOS
The command's header of the built-in plugin lokyr/command-header: while a pane's first row shows a command's output and the command's line is above the view, a pill of the command as you typed it, in the terminal's font, sits on a thin line across the pane's top, over its first row, which a click scrolls to the command's prompt. Its colors are the theme's, of the tokens that its keys name, so that they follow the light and the dark appearance.
lokyr/blocks, of the same header and a button to the block's end, replaces this plugin while it runs, as it does by default: the keys of this section apply while lokyr/blocks is off, and [plugins.blocks] has them otherwise.
background, text, border, line, hover
Platforms: macOS
The theme's tokens of the header's colors, by their names: the pill's background, its text, its border, the line across the pane, and the color over the pill's background under the pointer.
| Values | Default |
|---|---|
a token's name, as "accent", "panel.bg", "field.bg" or "text.secondary" | "panel.bg", "text", "panel.border", "panel.border", "button.hover.bg" |
- The tokens are those of the theme in force, as a theme's
[interface]names them, and each follows the light and the dark appearance; a name that the theme lacks takes the color of its name without its last part, aspanelforpanel.foo, then none. border = "accent"draws the pill's border in the theme's accent.- They apply at once, as you save the file, to a header that shows too.
font-size
Platforms: macOS
The size of the header's text, which takes the terminal's font, as [font] names it.
| Values | Default |
|---|---|
points, from 0 to 200; 0 for the terminal's own size | 0 |
- Of the terminal's own size, the pill is about a row of the terminal high, its padding past it; a smaller size keeps it within the row.
- It applies at once, as you save the file, to a header that shows too.
font-weight
Platforms: macOS
The weight of the header's text, of the terminal's font's faces, the nearest that it has.
| Values | Default |
|---|---|
light, regular, medium, semibold, bold, heavy | regular |
regularis the terminal's own face, asstylenames it; the others the family's faces nearest to their weights, which a family of a single weight does not have.- It applies at once, as you save the file, to a header that shows too.
padding-x, padding-y
Platforms: macOS
The room in the pill around its text, in points: left and right, and above and below.
| Values | Default |
|---|---|
padding-x from 0 to 40; padding-y from 0 to 20 | 8, 1 |
- The pill's ends stay round, of half its height.
- They apply at once, as you save the file, to a header that shows too.
align
Platforms: macOS
Where the header's pill sits along the line across the pane.
| Values | Default |
|---|---|
left, center, right | left |
leftandrightkeep it a little in from the pane's edge;centerin the pane's middle.- It applies at once, as you save the file, to a header that shows too.
max-length
Platforms: macOS
The most characters of the command's line that the header shows.
| Values | Default |
|---|---|
characters, from 1 to 1000 | 80 |
- A longer line is cut at its end of an ellipsis,
…; its tooltip, and what VoiceOver reads, keep it whole. - Whatever its length, the pill stays within the pane, its line cut of an ellipsis where the pane is narrower.
- It applies at once, as you save the file, to a header that shows too.
[plugins.blocks]
Platforms: macOS
The commands' blocks of the built-in plugin lokyr/blocks, off by default: enabled = true, or Enable on the Plugins page, turns it on. Each command that the shell marks, its prompt, its line and its output, is a block. As soon as the first row of a block's prompt scrolls above the view, the block's prompt rows stay pinned at the pane's top, which a click scrolls to the command's prompt, or, of header = "pill", a pill of the command as you typed it, in the terminal's font, sits on a thin line across the pane's top, over its first row, which a click scrolls to the command's prompt; while the view does not show the block's end, an arrow beside the pill scrolls there, the output's last row at the view's bottom, or the screen of a command that still runs. Its colors are the theme's, of the tokens that its keys name, so that they follow the light and the dark appearance. A thin line divides the blocks, the gutter's bar of each command runs along its block, the block that a click or the keyboard selects is tinted, and a failed block's rows can be tinted. A blank row before each prompt can make room between the blocks.
lokyr/blocks replaces lokyr/command-header, the plain header, of the same keys, which comes back while lokyr/blocks is off: keys of [plugins.command-header] apply then, and the settings window notes it above them while lokyr/blocks runs.
header
Platforms: macOS
How the header of the block whose output the pane's top shows looks.
| Values | Default |
|---|---|
rows, pill | rows |
rowspins the block's own prompt rows at the pane's top as soon as the prompt's first row scrolls above it, its prompt and its command line as your shell drew them, three rows at most, over the rows that scroll under them, with a line under them; a click on them scrolls to the prompt.pillshows the command line in a pill on a line across the pane, of the keys below, with an arrow to the block's end.- It applies at once, as you save the file.
header-while-running
Platforms: macOS · Since 1.7
Applies when header is "rows"
While a block's command runs and the pane shows its newest output, whether the block's prompt rows stay pinned at the pane's top.
| Values | Default |
|---|---|
auto, always, never | auto |
autokeeps them as the command's output scrolls past its prompt, such as a build's, and hides them once the program draws at the top of the screen, such aswatchor a remote shell afterclear, or reads your keys one by one, such as a pager,lessorgit log, so that what it shows there stays in sight.alwayskeeps them over what the program draws at the top of the screen too.neverhides them while the command runs, until it ends or you scroll back into its output.- It applies at once, as you save the file.
dividers
Platforms: macOS
Whether a thin line divides each command's block from the one before.
| Values | Default |
|---|---|
true, false | true |
- The line sits at the top of each block's first row, its prompt's, across the pane, the prompt where you type too.
- Its color is the theme's
blocks.divider, as the interface's lines by default. - The gutter's bar of each command runs along its block, from its prompt to its output's end, while Blocks runs, whatever this key.
- It applies at once, as you save the file.
failed-tint
Platforms: macOS
Whether the rows of a block whose command failed are tinted, across the pane.
| Values | Default |
|---|---|
true, false | false |
- A command fails of an exit status other than 0, as an interrupted command does.
- By default a failed block shows the gutter's red bar alone;
truetints its rows too, of the theme'sblocks.failed, a faint red by default. - It applies at once, as you save the file.
spacing
Platforms: macOS
Whether a blank row comes before each prompt that follows a command, as room between the blocks.
| Values | Default |
|---|---|
true, false | false |
- Lokyr puts the blank row there itself as the prompt starts, in any shell that marks its prompts, so your shell's config needs nothing.
- The divider between the blocks runs through the middle of the blank row, and a selected block's tint reaches it.
- No blank row comes before the first prompt, after an empty line, or at the top of a cleared screen.
- It applies at once, from the next prompt, as you save the file; the blank rows already there stay when you turn it off.
background, text, border, line, hover
Platforms: macOS
Applies when header is "pill"
The theme's tokens of the header's colors, by their names: the pill's background, its text, its border, the line across the pane, and the color over the pill's background under the pointer.
| Values | Default |
|---|---|
a token's name, as "accent", "panel.bg", "field.bg" or "text.secondary" | "panel.bg", "text", "panel.border", "panel.border", "button.hover.bg" |
- The tokens are those of the theme in force, as a theme's
[interface]names them, and each follows the light and the dark appearance; a name that the theme lacks takes the color of its name without its last part, aspanelforpanel.foo, then none. border = "accent"draws the pill's border in the theme's accent.- They apply at once, as you save the file, to a header that shows too.
font-size
Platforms: macOS
Applies when header is "pill"
The size of the header's text, which takes the terminal's font, as [font] names it.
| Values | Default |
|---|---|
points, from 0 to 200; 0 for the terminal's own size | 0 |
- Of the terminal's own size, the pill is about a row of the terminal high, its padding past it; a smaller size keeps it within the row.
- It applies at once, as you save the file, to a header that shows too.
font-weight
Platforms: macOS
Applies when header is "pill"
The weight of the header's text, of the terminal's font's faces, the nearest that it has.
| Values | Default |
|---|---|
light, regular, medium, semibold, bold, heavy | regular |
regularis the terminal's own face, asstylenames it; the others the family's faces nearest to their weights, which a family of a single weight does not have.- It applies at once, as you save the file, to a header that shows too.
padding-x, padding-y
Platforms: macOS
Applies when header is "pill"
The room in the pill around its text, in points: left and right, and above and below.
| Values | Default |
|---|---|
padding-x from 0 to 40; padding-y from 0 to 20 | 8, 1 |
- The pill's ends stay round, of half its height.
- They apply at once, as you save the file, to a header that shows too.
align
Platforms: macOS
Applies when header is "pill"
Where the header's pill sits along the line across the pane.
| Values | Default |
|---|---|
left, center, right | left |
leftandrightkeep it a little in from the pane's edge;centerin the pane's middle.- It applies at once, as you save the file, to a header that shows too.
max-length
Platforms: macOS
Applies when header is "pill"
The most characters of the command's line that the header shows.
| Values | Default |
|---|---|
characters, from 1 to 1000 | 80 |
- A longer line is cut at its end of an ellipsis,
…; its tooltip, and what VoiceOver reads, keep it whole. - Whatever its length, the pill stays within the pane, its line cut of an ellipsis where the pane is narrower.
- It applies at once, as you save the file, to a header that shows too.
[plugins.quick-tips]
Platforms: macOS
The quick tips of the built-in plugin lokyr/quick-tips: as Lokyr starts, a card at the bottom right of the window in front tells a shortcut as your keymap binds it, a feature that shows in no menu, or a command of a plugin that you installed, each tip once before any comes again. Its text takes two lines; a longer one shows whole as you click the card or its More button. It goes after 12 seconds, held while the pointer rests on it, at the first key that you type, or by its Dismiss button; its Don't show again checkbox stops the tips for good. Help › Show a Tip shows the next one at once, whatever the days.
every
Platforms: macOS
The days between two tips as Lokyr starts.
| Values | Default |
|---|---|
a whole number of days, from 0 to 365 | 7 |
0shows a tip at every start, which helps to read them one after the other.- A tip shows at a start once that many days passed since the last one at a start, as Lokyr keeps its day, and none while a notice of Lokyr's shows; Help › Show a Tip does not count.
- Don't show again stops them whatever the days; Help › Show a Tip still shows one.
- It applies at the next start, as you save the file.
[plugins.links]
alphabet
Platforms: macOS · Since 1.3
The letters of the hints' labels, in the order that they take them: the first letters label the hints nearest the cursor, one letter each, and the hints past them take two.
| Values | Default |
|---|---|
| lowercase letters and digits, each once, 2 at least | "asdfghjklqwertyuiopzxcvbnm" |
- The home row's first, by default, so that the nearest hints are a key away. A capital, as Shift types it, copies the hint whatever its action.
- A value of another character, or of a letter twice, is told in a notice, and the hints keep the default.
- It applies as you save the file, to the next hints.
hints
Platforms: macOS · Since 1.3
Patterns of your own that View › Show Hints labels, beside the URLs, the paths, git's hashes and the IP addresses that it finds by itself, such as your issue tracker's ticket numbers, each opening a page of its own.
| Values | Default |
|---|---|
tables of a pattern and a url | none |
# A ticket number, such as PROJ-1234, opens the ticket's page.
[plugins.links.hints.tickets]
pattern = 'PROJ-\d+'
url = "https://jira.example.com/browse/$0"
- Each pattern is a table under
[plugins.links.hints], named as you like,ticketsabove: the name shows in the notices about it, and of two patterns that match the same text, the one whose name comes first wins, capitals before lowercase letters. patternis a regular expression, case-sensitive unless it starts with(?i). Between single quotes, TOML keeps its backslashes as they are; between double quotes, double each one:"PROJ-\\d+".urlis what picking the hint opens:$0stands for the whole text that the pattern matched,$1to$9for the parts of the pattern between parentheses, and$$for a$. It opens onlyhttp,https,mailtoandfileURLs, or a path from/or~; aurlthat starts with another scheme, such asvscode:, is left out, and a notice reports it. Without aurl, picking the hint copies its text.- A pattern that doesn't read is left out, and a notice reports why. A match of your patterns comes before what the hints find by themselves.
- The settings window adds, changes, renames and removes them too, each a table of its own in the file, the rest of the file and its comments kept.
- It applies as you save the file, to the next hints. Links shows more examples.