2018-09-21 22:46:41 -04:00
|
|
|
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
2017-02-13 21:22:59 -05:00
|
|
|
|
|
|
|
# Any items in the `env` entry below will be added as
|
|
|
|
# environment variables. Some entries may override variables
|
2018-09-21 22:46:41 -04:00
|
|
|
# set by alacritty itself.
|
2018-10-07 14:40:58 -04:00
|
|
|
#env:
|
2018-09-24 15:06:12 -04:00
|
|
|
# TERM variable
|
2017-04-21 19:24:54 -04:00
|
|
|
#
|
2018-09-24 15:06:12 -04:00
|
|
|
# This value is used to set the `$TERM` environment variable for
|
|
|
|
# each instance of Alacritty. If it is not present, alacritty will
|
2019-01-17 04:17:26 -05:00
|
|
|
# check the local terminfo database and use `alacritty` if it is
|
|
|
|
# available, otherwise `xterm-256color` is used.
|
2020-02-23 15:54:44 -05:00
|
|
|
#TERM: alacritty
|
2017-02-13 21:22:59 -05:00
|
|
|
|
2019-10-06 06:47:20 -04:00
|
|
|
#window:
|
2018-09-21 22:46:41 -04:00
|
|
|
# Window dimensions (changes require restart)
|
|
|
|
#
|
|
|
|
# Specified in number of columns/lines, not pixels.
|
|
|
|
# If both are `0`, this setting is ignored.
|
2019-10-06 06:47:20 -04:00
|
|
|
#dimensions:
|
|
|
|
# columns: 0
|
|
|
|
# lines: 0
|
2017-12-20 14:30:22 -05:00
|
|
|
|
2019-03-11 08:35:49 -04:00
|
|
|
# Window position (changes require restart)
|
|
|
|
#
|
|
|
|
# Specified in number of pixels.
|
|
|
|
# If the position is not set, the window manager will handle the placement.
|
|
|
|
#position:
|
|
|
|
# x: 0
|
|
|
|
# y: 0
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Window padding (changes require restart)
|
|
|
|
#
|
2018-11-12 13:23:23 -05:00
|
|
|
# Blank space added around the window in pixels. This padding is scaled
|
2018-09-21 22:46:41 -04:00
|
|
|
# by DPI and the specified value is always added at both opposing sides.
|
2019-10-06 06:47:20 -04:00
|
|
|
#padding:
|
|
|
|
# x: 0
|
|
|
|
# y: 0
|
2017-12-20 14:30:22 -05:00
|
|
|
|
2018-11-15 14:57:15 -05:00
|
|
|
# Spread additional padding evenly around the terminal content.
|
2019-10-06 06:47:20 -04:00
|
|
|
#dynamic_padding: false
|
2018-11-15 14:57:15 -05:00
|
|
|
|
2017-12-20 14:30:22 -05:00
|
|
|
# Window decorations
|
2018-09-21 22:46:41 -04:00
|
|
|
#
|
|
|
|
# Values for `decorations`:
|
|
|
|
# - full: Borders and title bar
|
|
|
|
# - none: Neither borders nor title bar
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
|
|
|
# Values for `decorations` (macOS only):
|
2019-02-03 19:17:57 -05:00
|
|
|
# - transparent: Title bar, transparent background and title bar buttons
|
|
|
|
# - buttonless: Title bar, transparent background, but no title bar buttons
|
2019-10-06 06:47:20 -04:00
|
|
|
#decorations: full
|
2017-05-06 11:45:23 -04:00
|
|
|
|
2019-04-23 15:05:47 -04:00
|
|
|
# Startup Mode (changes require restart)
|
|
|
|
#
|
|
|
|
# Values for `startup_mode`:
|
|
|
|
# - Windowed
|
|
|
|
# - Maximized
|
|
|
|
# - Fullscreen
|
|
|
|
#
|
|
|
|
# Values for `startup_mode` (macOS only):
|
|
|
|
# - SimpleFullscreen
|
2019-10-06 06:47:20 -04:00
|
|
|
#startup_mode: Windowed
|
2018-11-19 16:23:47 -05:00
|
|
|
|
2019-05-10 07:36:16 -04:00
|
|
|
# Window title
|
|
|
|
#title: Alacritty
|
|
|
|
|
2020-01-04 20:54:14 -05:00
|
|
|
# Window class (Linux/BSD only):
|
2019-10-06 06:47:20 -04:00
|
|
|
#class:
|
2019-07-06 15:34:56 -04:00
|
|
|
# Application instance name
|
2019-10-06 06:47:20 -04:00
|
|
|
#instance: Alacritty
|
2019-07-06 15:34:56 -04:00
|
|
|
# General application class
|
2019-10-06 06:47:20 -04:00
|
|
|
#general: Alacritty
|
2019-07-06 15:34:56 -04:00
|
|
|
|
2020-01-04 20:54:14 -05:00
|
|
|
# GTK theme variant (Linux/BSD only)
|
2019-07-06 15:34:56 -04:00
|
|
|
#
|
|
|
|
# Override the variant of the GTK theme. Commonly supported values are `dark` and `light`.
|
|
|
|
# Set this to `None` to use the default theme variant.
|
2019-10-06 06:47:20 -04:00
|
|
|
#gtk_theme_variant: None
|
2019-05-10 07:36:16 -04:00
|
|
|
|
2019-10-06 06:47:20 -04:00
|
|
|
#scrolling:
|
2018-09-21 22:46:41 -04:00
|
|
|
# Maximum number of lines in the scrollback buffer.
|
|
|
|
# Specifying '0' will disable scrolling.
|
2019-10-06 06:47:20 -04:00
|
|
|
#history: 10000
|
2018-03-09 13:45:40 -05:00
|
|
|
|
2020-05-01 21:01:22 -04:00
|
|
|
# Scrolling distance multiplier.
|
2019-10-06 06:47:20 -04:00
|
|
|
#multiplier: 3
|
2018-03-09 13:45:40 -05:00
|
|
|
|
2019-11-03 14:02:26 -05:00
|
|
|
# Font configuration
|
2019-10-06 06:47:20 -04:00
|
|
|
#font:
|
2018-09-21 22:46:41 -04:00
|
|
|
# Normal (roman) font face
|
2019-01-20 12:39:15 -05:00
|
|
|
#normal:
|
2019-01-17 04:17:26 -05:00
|
|
|
# Font family
|
|
|
|
#
|
|
|
|
# Default:
|
|
|
|
# - (macOS) Menlo
|
2020-01-04 20:54:14 -05:00
|
|
|
# - (Linux/BSD) monospace
|
2019-01-17 04:17:26 -05:00
|
|
|
# - (Windows) Consolas
|
|
|
|
#family: monospace
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# The `style` can be specified to pick a specific face.
|
2019-01-20 12:39:15 -05:00
|
|
|
#style: Regular
|
2017-01-02 21:52:41 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Bold font face
|
2019-01-20 12:39:15 -05:00
|
|
|
#bold:
|
2019-01-17 04:17:26 -05:00
|
|
|
# Font family
|
|
|
|
#
|
|
|
|
# If the bold family is not specified, it will fall back to the
|
|
|
|
# value specified for the normal font.
|
|
|
|
#family: monospace
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# The `style` can be specified to pick a specific face.
|
2019-01-20 12:39:15 -05:00
|
|
|
#style: Bold
|
2017-01-02 21:52:41 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Italic font face
|
2019-01-20 12:39:15 -05:00
|
|
|
#italic:
|
2019-01-17 04:17:26 -05:00
|
|
|
# Font family
|
|
|
|
#
|
|
|
|
# If the italic family is not specified, it will fall back to the
|
|
|
|
# value specified for the normal font.
|
|
|
|
#family: monospace
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# The `style` can be specified to pick a specific face.
|
2019-01-20 12:39:15 -05:00
|
|
|
#style: Italic
|
2017-01-02 21:52:41 -05:00
|
|
|
|
2019-08-25 06:46:52 -04:00
|
|
|
# Bold italic font face
|
|
|
|
#bold_italic:
|
|
|
|
# Font family
|
|
|
|
#
|
|
|
|
# If the bold italic family is not specified, it will fall back to the
|
|
|
|
# value specified for the normal font.
|
|
|
|
#family: monospace
|
|
|
|
|
|
|
|
# The `style` can be specified to pick a specific face.
|
|
|
|
#style: Bold Italic
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Point size
|
2019-10-06 06:47:20 -04:00
|
|
|
#size: 11.0
|
2017-01-15 12:38:04 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Offset is the extra space around each character. `offset.y` can be thought of
|
|
|
|
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
2019-10-06 06:47:20 -04:00
|
|
|
#offset:
|
|
|
|
# x: 0
|
|
|
|
# y: 0
|
2016-06-30 12:04:06 -04:00
|
|
|
|
2017-01-15 12:38:04 -05:00
|
|
|
# Glyph offset determines the locations of the glyphs within their cells with
|
2018-09-21 22:46:41 -04:00
|
|
|
# the default being at the bottom. Increasing `x` moves the glyph to the right,
|
|
|
|
# increasing `y` moves the glyph upwards.
|
2019-10-06 06:47:20 -04:00
|
|
|
#glyph_offset:
|
|
|
|
# x: 0
|
|
|
|
# y: 0
|
2017-01-15 12:38:04 -05:00
|
|
|
|
2019-01-17 04:17:26 -05:00
|
|
|
# Thin stroke font rendering (macOS only)
|
|
|
|
#
|
|
|
|
# Thin strokes are suitable for retina displays, but for non-retina screens
|
2020-05-17 17:14:13 -04:00
|
|
|
# it is recommended to set `use_thin_strokes` to `false`.
|
2019-10-06 06:47:20 -04:00
|
|
|
#use_thin_strokes: true
|
2019-01-17 04:17:26 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# If `true`, bold text is drawn using the bright color variants.
|
2020-01-20 16:13:39 -05:00
|
|
|
#draw_bold_text_with_bright_colors: false
|
2018-09-21 22:46:41 -04:00
|
|
|
|
2020-05-16 18:27:31 -04:00
|
|
|
# Colors (Tomorrow Night)
|
2019-10-06 06:47:20 -04:00
|
|
|
#colors:
|
2016-07-01 00:26:26 -04:00
|
|
|
# Default colors
|
2019-10-06 06:47:20 -04:00
|
|
|
#primary:
|
2020-05-16 18:27:31 -04:00
|
|
|
# background: '#1d1f21'
|
|
|
|
# foreground: '#c5c8c6'
|
2017-02-10 12:15:36 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Bright and dim foreground colors
|
Merge master into scrollback
* Allow disabling DPI scaling
This makes it possible to disable DPI scaling completely, instead the
the display pixel ration will always be fixed to 1.0.
By default nothing has changed and DPI is still enabled, this just seems
like a better way than running `WINIT_HIDPI_FACTOR=1.0 alacritty` every
time the user wants to start alacritty.
It would be possible to allow specifying any DPR, however I've decided
against this since I'd assume it's a very rare usecase. It's also still
possible to make use of `WINIT_HIDPI_FACTOR` to do this on X11.
Currently this is not updated at runtime using the live config update,
there is not really much of a technical limitation why this woudn't be
possible, however a solution for that issue should be first added in
jwilm/alacritty#1346, once a system is established for changing DPI at
runtime, porting that functionality to this PR should be simple.
* Add working --class and --title CLI parameters
* Reduce Increase-/DecreaseFontSize step to 0.5
Until now the Increase-/DecreaseFontSize keybinds hand a step size of 1.0. Since the font size however is multiplied by two to allow more granular font size control, this lead to the bindings skipping one font size (incrementing/decrementing by +-2).
To fix this the step size of the Increase-/DecreaseFontSize bindings has been reduced to the minimum step size that exists with the current font configuration (0.5). This should allow users to increment and decrement the font size by a single point instead of two.
This also adds a few tests to make sure the methods for increasing/decreasing/resetting font size work properly.
* Add Copy/Cut/Paste keys
This just adds support for the Copy/Cut/Paste keys and sets up
Copy/Paste as alternative defaults for Ctrl+Shift+C/V.
* Move to cargo clippy
Using clippy as a library has been deprecated, instead the `cargo
clippy` command should be used instead. To comply with this change
clippy has been removed from the `Cargo.toml` and is now installed with
cargo when building in CI.
This has also lead to a few new clippy issues to show up, this includes
everything in the `font` subdirectory. This has been fixed and `font`
should now be covered by clippy CI too.
This also upgrades all dependencies, as a result this fixes #1341 and
this fixes #1344.
* Override dynamic_title when --title is specified
* Change green implementation to use the macro
* Ignore mouse input if window is unfocused
* Make compilation of binary a phony target
* Add opensuse zypper install method to readme
* Fix clippy issues
* Update manpage to document all CLI options
The introduction of `--class` has added a flag to the CLI without adding
it to the manpage. This has been fixed by updating the manpage.
This also adds the default values of `--class` and `--title` to the CLI
options.
* Remove unnecessary clippy lint annotations
We moved to "cargo clippy" in 5ba34d4f9766a55a06ed5e3e44cc384af1b09f65 and
removing the clippy lint annotations in `src/lib.rs` does not cause any additional warnings.
This also changes `cargo clippy` to use the flags required for checking integration tests.
* Enable clippy in font/copypasta crates
Enabled clippy in the sub-crates font and copypasta. All issues
that were discovered by this change have also been fixed.
* Remove outdated comment about NixOS
* Replace debug asserts with static_assertions
To check that transmutes will work correctly without having to rely on
error-prone runtime checking, the `static_assertions` crate has been
introduced. This allows comparing the size of types at compile time,
preventing potentially silent breakage.
This fixes #1417.
* Add `cargo deb` build instructions
Updated the `Cargo.toml` file and added a `package.metadata.deb`
subsection to define how to build a debian "deb" install file using
`cargo deb`. This will allow debian/ubuntu users to install `alacritty`
using their system's package manager. It also will make it easier to
provide pre-built binaries for those systems.
Also fixed a stray debug line in the bash autocomplete script that was
writting to a tempfile.
* Add config for unfocused window cursor change
* Add support for cursor shape escape sequence
* Add bright foreground color option
It was requested in jwilm/alacritty#825 that it should be possible to
add an optional bright foreground color.
This is now added to the primary colors structure and allows the user to
set a foreground color for bold normal text. This has no effect unless
the draw_bold_text_with_bright_colors option is also enabled.
If the color is not specified, the bright foreground color will fall
back to the normal foreground color.
This fixes #825.
* Fix clone URL in deb install instructions
* Fix 'cargo-deb' desktop file name
* Remove redundant dependency from deb build
* Switch from deprecated `std::env::home_dir` to `dirs::home_dir`
* Allow specifying modifiers for mouse bindings
* Send newline with NumpadEnter
* Add support for LCD-V pixel mode
* Add binding action for hiding the window
* Switch to rustup clippy component
* Add optional dim foreground color
Add optional color for the dim foreground (`\e[2m;`)
Defaults to 2/3 of the foreground color. (same as other colors).
If a bright color is dimmed, it's displayed as the normal color. The
exception for this is when the bright foreground is dimmed when no
bright foreground color is set. In that case it's treated as a normal
foreground color and dimmed to DimForeground.
To minimize the surprise for the user, the bright and dim colors have
been completely removed from the default configuration file.
Some documentation has also been added to make it clear to users what
these options can be used for.
This fixes #1448.
* Fix clippy lints and run font tests on travis
This fixes some existing clippy issues and runs the `font` tests through travis.
Testing of copypasta crate was omitted due to problens when running on headless travis-ci environment (x11 clipboard would fail).
* Ignore errors when logger can't write to output
The (e)print macro will panic when there is no output available to
write to, however in our scenario where we only log user errors to
stderr, the better choice would be to ignore when writing to stdout or
stderr is not possible.
This changes the (e)print macro to make use of `write` and ignore
any potential errors.
Since (e)println rely on (e)print, this also solves potential failuers
when calling (e)println.
With this change implemented, all of logging, (e)println and (e)print
should never fail even if the stdout/stderr is not available.
2018-07-28 19:10:13 -04:00
|
|
|
#
|
|
|
|
# The dimmed foreground color is calculated automatically if it is not present.
|
|
|
|
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
|
|
|
|
# is `false`, the normal foreground color will be used.
|
2020-05-16 18:27:31 -04:00
|
|
|
#dim_foreground: '#828482'
|
|
|
|
#bright_foreground: '#eaeaea'
|
Merge master into scrollback
* Allow disabling DPI scaling
This makes it possible to disable DPI scaling completely, instead the
the display pixel ration will always be fixed to 1.0.
By default nothing has changed and DPI is still enabled, this just seems
like a better way than running `WINIT_HIDPI_FACTOR=1.0 alacritty` every
time the user wants to start alacritty.
It would be possible to allow specifying any DPR, however I've decided
against this since I'd assume it's a very rare usecase. It's also still
possible to make use of `WINIT_HIDPI_FACTOR` to do this on X11.
Currently this is not updated at runtime using the live config update,
there is not really much of a technical limitation why this woudn't be
possible, however a solution for that issue should be first added in
jwilm/alacritty#1346, once a system is established for changing DPI at
runtime, porting that functionality to this PR should be simple.
* Add working --class and --title CLI parameters
* Reduce Increase-/DecreaseFontSize step to 0.5
Until now the Increase-/DecreaseFontSize keybinds hand a step size of 1.0. Since the font size however is multiplied by two to allow more granular font size control, this lead to the bindings skipping one font size (incrementing/decrementing by +-2).
To fix this the step size of the Increase-/DecreaseFontSize bindings has been reduced to the minimum step size that exists with the current font configuration (0.5). This should allow users to increment and decrement the font size by a single point instead of two.
This also adds a few tests to make sure the methods for increasing/decreasing/resetting font size work properly.
* Add Copy/Cut/Paste keys
This just adds support for the Copy/Cut/Paste keys and sets up
Copy/Paste as alternative defaults for Ctrl+Shift+C/V.
* Move to cargo clippy
Using clippy as a library has been deprecated, instead the `cargo
clippy` command should be used instead. To comply with this change
clippy has been removed from the `Cargo.toml` and is now installed with
cargo when building in CI.
This has also lead to a few new clippy issues to show up, this includes
everything in the `font` subdirectory. This has been fixed and `font`
should now be covered by clippy CI too.
This also upgrades all dependencies, as a result this fixes #1341 and
this fixes #1344.
* Override dynamic_title when --title is specified
* Change green implementation to use the macro
* Ignore mouse input if window is unfocused
* Make compilation of binary a phony target
* Add opensuse zypper install method to readme
* Fix clippy issues
* Update manpage to document all CLI options
The introduction of `--class` has added a flag to the CLI without adding
it to the manpage. This has been fixed by updating the manpage.
This also adds the default values of `--class` and `--title` to the CLI
options.
* Remove unnecessary clippy lint annotations
We moved to "cargo clippy" in 5ba34d4f9766a55a06ed5e3e44cc384af1b09f65 and
removing the clippy lint annotations in `src/lib.rs` does not cause any additional warnings.
This also changes `cargo clippy` to use the flags required for checking integration tests.
* Enable clippy in font/copypasta crates
Enabled clippy in the sub-crates font and copypasta. All issues
that were discovered by this change have also been fixed.
* Remove outdated comment about NixOS
* Replace debug asserts with static_assertions
To check that transmutes will work correctly without having to rely on
error-prone runtime checking, the `static_assertions` crate has been
introduced. This allows comparing the size of types at compile time,
preventing potentially silent breakage.
This fixes #1417.
* Add `cargo deb` build instructions
Updated the `Cargo.toml` file and added a `package.metadata.deb`
subsection to define how to build a debian "deb" install file using
`cargo deb`. This will allow debian/ubuntu users to install `alacritty`
using their system's package manager. It also will make it easier to
provide pre-built binaries for those systems.
Also fixed a stray debug line in the bash autocomplete script that was
writting to a tempfile.
* Add config for unfocused window cursor change
* Add support for cursor shape escape sequence
* Add bright foreground color option
It was requested in jwilm/alacritty#825 that it should be possible to
add an optional bright foreground color.
This is now added to the primary colors structure and allows the user to
set a foreground color for bold normal text. This has no effect unless
the draw_bold_text_with_bright_colors option is also enabled.
If the color is not specified, the bright foreground color will fall
back to the normal foreground color.
This fixes #825.
* Fix clone URL in deb install instructions
* Fix 'cargo-deb' desktop file name
* Remove redundant dependency from deb build
* Switch from deprecated `std::env::home_dir` to `dirs::home_dir`
* Allow specifying modifiers for mouse bindings
* Send newline with NumpadEnter
* Add support for LCD-V pixel mode
* Add binding action for hiding the window
* Switch to rustup clippy component
* Add optional dim foreground color
Add optional color for the dim foreground (`\e[2m;`)
Defaults to 2/3 of the foreground color. (same as other colors).
If a bright color is dimmed, it's displayed as the normal color. The
exception for this is when the bright foreground is dimmed when no
bright foreground color is set. In that case it's treated as a normal
foreground color and dimmed to DimForeground.
To minimize the surprise for the user, the bright and dim colors have
been completely removed from the default configuration file.
Some documentation has also been added to make it clear to users what
these options can be used for.
This fixes #1448.
* Fix clippy lints and run font tests on travis
This fixes some existing clippy issues and runs the `font` tests through travis.
Testing of copypasta crate was omitted due to problens when running on headless travis-ci environment (x11 clipboard would fail).
* Ignore errors when logger can't write to output
The (e)print macro will panic when there is no output available to
write to, however in our scenario where we only log user errors to
stderr, the better choice would be to ignore when writing to stdout or
stderr is not possible.
This changes the (e)print macro to make use of `write` and ignore
any potential errors.
Since (e)println rely on (e)print, this also solves potential failuers
when calling (e)println.
With this change implemented, all of logging, (e)println and (e)print
should never fail even if the stdout/stderr is not available.
2018-07-28 19:10:13 -04:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Cursor colors
|
|
|
|
#
|
2020-07-09 17:45:22 -04:00
|
|
|
# Colors which should be used to draw the terminal cursor.
|
|
|
|
#
|
|
|
|
# Allowed values are CellForeground and CellBackground, which reference the
|
|
|
|
# affected cell, or hexadecimal colors like #ff00ff.
|
2018-11-01 13:23:49 -04:00
|
|
|
#cursor:
|
2020-07-09 17:45:22 -04:00
|
|
|
# text: CellBackground
|
|
|
|
# cursor: CellForeground
|
2019-04-23 15:05:47 -04:00
|
|
|
|
2020-03-17 22:35:08 -04:00
|
|
|
# Vi mode cursor colors
|
|
|
|
#
|
2020-07-09 17:45:22 -04:00
|
|
|
# Colors for the cursor when the vi mode is active.
|
|
|
|
#
|
|
|
|
# Allowed values are CellForeground and CellBackground, which reference the
|
|
|
|
# affected cell, or hexadecimal colors like #ff00ff.
|
2020-03-17 22:35:08 -04:00
|
|
|
#vi_mode_cursor:
|
2020-07-09 17:45:22 -04:00
|
|
|
# text: CellBackground
|
|
|
|
# cursor: CellForeground
|
2020-03-17 22:35:08 -04:00
|
|
|
|
2019-03-12 19:11:32 -04:00
|
|
|
# Selection colors
|
|
|
|
#
|
2020-07-09 17:45:22 -04:00
|
|
|
# Colors which should be used to draw the selection area.
|
|
|
|
#
|
|
|
|
# Allowed values are CellForeground and CellBackground, which reference the
|
|
|
|
# affected cell, or hexadecimal colors like #ff00ff.
|
2019-03-12 19:11:32 -04:00
|
|
|
#selection:
|
2020-07-09 17:45:22 -04:00
|
|
|
# text: CellBackground
|
|
|
|
# background: CellForeground
|
|
|
|
|
|
|
|
# Search colors
|
|
|
|
#
|
|
|
|
# Colors used for the search bar and match highlighting.
|
|
|
|
#
|
|
|
|
# Allowed values are CellForeground and CellBackground, which reference the
|
|
|
|
# affected cell, or hexadecimal colors like #ff00ff.
|
|
|
|
#search:
|
|
|
|
# matches:
|
|
|
|
# foreground: '#000000'
|
|
|
|
# background: '#ffffff'
|
|
|
|
#
|
|
|
|
# bar:
|
|
|
|
# background: CellForeground
|
|
|
|
# foreground: CellBackground
|
2016-07-01 00:26:26 -04:00
|
|
|
|
|
|
|
# Normal colors
|
2019-10-06 06:47:20 -04:00
|
|
|
#normal:
|
2020-05-16 18:27:31 -04:00
|
|
|
# black: '#1d1f21'
|
|
|
|
# red: '#cc6666'
|
|
|
|
# green: '#b5bd68'
|
|
|
|
# yellow: '#f0c674'
|
|
|
|
# blue: '#81a2be'
|
|
|
|
# magenta: '#b294bb'
|
|
|
|
# cyan: '#8abeb7'
|
|
|
|
# white: '#c5c8c6'
|
2016-07-01 00:26:26 -04:00
|
|
|
|
|
|
|
# Bright colors
|
2019-10-06 06:47:20 -04:00
|
|
|
#bright:
|
2020-02-27 18:06:04 -05:00
|
|
|
# black: '#666666'
|
2020-05-16 18:27:31 -04:00
|
|
|
# red: '#d54e53'
|
|
|
|
# green: '#b9ca4a'
|
2020-02-27 18:06:04 -05:00
|
|
|
# yellow: '#e7c547'
|
|
|
|
# blue: '#7aa6da'
|
2020-05-16 18:27:31 -04:00
|
|
|
# magenta: '#c397d8'
|
|
|
|
# cyan: '#70c0b1'
|
|
|
|
# white: '#eaeaea'
|
2016-07-01 00:26:26 -04:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Dim colors
|
|
|
|
#
|
|
|
|
# If the dim colors are not set, they will be calculated automatically based
|
|
|
|
# on the `normal` colors.
|
2019-01-17 04:17:26 -05:00
|
|
|
#dim:
|
2020-05-16 18:27:31 -04:00
|
|
|
# black: '#131415'
|
|
|
|
# red: '#864343'
|
|
|
|
# green: '#777c44'
|
|
|
|
# yellow: '#9e824c'
|
|
|
|
# blue: '#556a7d'
|
|
|
|
# magenta: '#75617b'
|
|
|
|
# cyan: '#5b7d78'
|
|
|
|
# white: '#828482'
|
2017-06-23 13:01:53 -04:00
|
|
|
|
2018-09-23 19:05:15 -04:00
|
|
|
# Indexed Colors
|
|
|
|
#
|
|
|
|
# The indexed colors include all colors from 16 to 256.
|
|
|
|
# When these are not set, they're filled with sensible defaults.
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
|
|
|
# Example:
|
2020-02-27 18:06:04 -05:00
|
|
|
# `- { index: 16, color: '#ff00ff' }`
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
2019-10-06 06:47:20 -04:00
|
|
|
#indexed_colors: []
|
2018-09-23 19:05:15 -04:00
|
|
|
|
2020-07-10 15:32:44 -04:00
|
|
|
# Bell
|
2017-02-03 18:34:52 -05:00
|
|
|
#
|
2020-07-10 15:32:44 -04:00
|
|
|
# The bell is rung every time the BEL control character is received.
|
|
|
|
#bell:
|
|
|
|
# Visual Bell Animation
|
|
|
|
#
|
|
|
|
# Animation effect for flashing the screen when the visual bell is rung.
|
|
|
|
#
|
|
|
|
# Values for `animation`:
|
|
|
|
# - Ease
|
|
|
|
# - EaseOut
|
|
|
|
# - EaseOutSine
|
|
|
|
# - EaseOutQuad
|
|
|
|
# - EaseOutCubic
|
|
|
|
# - EaseOutQuart
|
|
|
|
# - EaseOutQuint
|
|
|
|
# - EaseOutExpo
|
|
|
|
# - EaseOutCirc
|
|
|
|
# - Linear
|
|
|
|
#animation: EaseOutExpo
|
|
|
|
|
|
|
|
# Duration of the visual bell flash. A `duration` of `0` will disable the
|
|
|
|
# visual bell animation.
|
|
|
|
#duration: 0
|
|
|
|
|
|
|
|
# Visual bell animation color.
|
|
|
|
#color: '#ffffff'
|
|
|
|
|
|
|
|
# Bell Command
|
|
|
|
#
|
|
|
|
# This program is executed whenever the bell is rung.
|
|
|
|
#
|
|
|
|
# When set to `command: None`, no command will be executed.
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# command:
|
|
|
|
# program: notify-send
|
|
|
|
# args: ["Hello, World!"]
|
|
|
|
#
|
|
|
|
#command: None
|
2017-02-03 18:34:52 -05:00
|
|
|
|
2017-08-20 12:55:45 -04:00
|
|
|
# Background opacity
|
2018-10-03 07:29:37 -04:00
|
|
|
#
|
|
|
|
# Window opacity as a floating point number from `0.0` to `1.0`.
|
|
|
|
# The value `0.0` is completely transparent and `1.0` is opaque.
|
2019-10-06 06:47:20 -04:00
|
|
|
#background_opacity: 1.0
|
2017-08-20 12:55:45 -04:00
|
|
|
|
2019-10-06 06:47:20 -04:00
|
|
|
#selection:
|
|
|
|
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
|
2017-10-20 10:59:28 -04:00
|
|
|
|
2019-01-17 04:17:26 -05:00
|
|
|
# When set to `true`, selected text will be copied to the primary clipboard.
|
2019-10-06 06:47:20 -04:00
|
|
|
#save_to_clipboard: false
|
2018-09-24 08:12:45 -04:00
|
|
|
|
2019-01-17 04:17:26 -05:00
|
|
|
# Allow terminal applications to change Alacritty's window title.
|
2019-10-06 06:47:20 -04:00
|
|
|
#dynamic_title: true
|
2017-12-24 13:24:28 -05:00
|
|
|
|
2019-10-06 06:47:20 -04:00
|
|
|
#cursor:
|
2018-11-01 13:23:49 -04:00
|
|
|
# Cursor style
|
|
|
|
#
|
2019-01-17 04:17:26 -05:00
|
|
|
# Values for `style`:
|
2018-11-01 13:23:49 -04:00
|
|
|
# - ▇ Block
|
|
|
|
# - _ Underline
|
|
|
|
# - | Beam
|
2019-10-06 06:47:20 -04:00
|
|
|
#style: Block
|
2018-11-01 13:23:49 -04:00
|
|
|
|
2020-03-17 22:35:08 -04:00
|
|
|
# Vi mode cursor style
|
|
|
|
#
|
|
|
|
# If the vi mode cursor style is `None` or not specified, it will fall back to
|
|
|
|
# the style of the active value of the normal cursor.
|
|
|
|
#
|
|
|
|
# See `cursor.style` for available options.
|
|
|
|
#vi_mode_style: None
|
|
|
|
|
2018-11-01 13:23:49 -04:00
|
|
|
# If this is `true`, the cursor will be rendered as a hollow box when the
|
|
|
|
# window is not focused.
|
2019-10-06 06:47:20 -04:00
|
|
|
#unfocused_hollow: true
|
Merge master into scrollback
* Allow disabling DPI scaling
This makes it possible to disable DPI scaling completely, instead the
the display pixel ration will always be fixed to 1.0.
By default nothing has changed and DPI is still enabled, this just seems
like a better way than running `WINIT_HIDPI_FACTOR=1.0 alacritty` every
time the user wants to start alacritty.
It would be possible to allow specifying any DPR, however I've decided
against this since I'd assume it's a very rare usecase. It's also still
possible to make use of `WINIT_HIDPI_FACTOR` to do this on X11.
Currently this is not updated at runtime using the live config update,
there is not really much of a technical limitation why this woudn't be
possible, however a solution for that issue should be first added in
jwilm/alacritty#1346, once a system is established for changing DPI at
runtime, porting that functionality to this PR should be simple.
* Add working --class and --title CLI parameters
* Reduce Increase-/DecreaseFontSize step to 0.5
Until now the Increase-/DecreaseFontSize keybinds hand a step size of 1.0. Since the font size however is multiplied by two to allow more granular font size control, this lead to the bindings skipping one font size (incrementing/decrementing by +-2).
To fix this the step size of the Increase-/DecreaseFontSize bindings has been reduced to the minimum step size that exists with the current font configuration (0.5). This should allow users to increment and decrement the font size by a single point instead of two.
This also adds a few tests to make sure the methods for increasing/decreasing/resetting font size work properly.
* Add Copy/Cut/Paste keys
This just adds support for the Copy/Cut/Paste keys and sets up
Copy/Paste as alternative defaults for Ctrl+Shift+C/V.
* Move to cargo clippy
Using clippy as a library has been deprecated, instead the `cargo
clippy` command should be used instead. To comply with this change
clippy has been removed from the `Cargo.toml` and is now installed with
cargo when building in CI.
This has also lead to a few new clippy issues to show up, this includes
everything in the `font` subdirectory. This has been fixed and `font`
should now be covered by clippy CI too.
This also upgrades all dependencies, as a result this fixes #1341 and
this fixes #1344.
* Override dynamic_title when --title is specified
* Change green implementation to use the macro
* Ignore mouse input if window is unfocused
* Make compilation of binary a phony target
* Add opensuse zypper install method to readme
* Fix clippy issues
* Update manpage to document all CLI options
The introduction of `--class` has added a flag to the CLI without adding
it to the manpage. This has been fixed by updating the manpage.
This also adds the default values of `--class` and `--title` to the CLI
options.
* Remove unnecessary clippy lint annotations
We moved to "cargo clippy" in 5ba34d4f9766a55a06ed5e3e44cc384af1b09f65 and
removing the clippy lint annotations in `src/lib.rs` does not cause any additional warnings.
This also changes `cargo clippy` to use the flags required for checking integration tests.
* Enable clippy in font/copypasta crates
Enabled clippy in the sub-crates font and copypasta. All issues
that were discovered by this change have also been fixed.
* Remove outdated comment about NixOS
* Replace debug asserts with static_assertions
To check that transmutes will work correctly without having to rely on
error-prone runtime checking, the `static_assertions` crate has been
introduced. This allows comparing the size of types at compile time,
preventing potentially silent breakage.
This fixes #1417.
* Add `cargo deb` build instructions
Updated the `Cargo.toml` file and added a `package.metadata.deb`
subsection to define how to build a debian "deb" install file using
`cargo deb`. This will allow debian/ubuntu users to install `alacritty`
using their system's package manager. It also will make it easier to
provide pre-built binaries for those systems.
Also fixed a stray debug line in the bash autocomplete script that was
writting to a tempfile.
* Add config for unfocused window cursor change
* Add support for cursor shape escape sequence
* Add bright foreground color option
It was requested in jwilm/alacritty#825 that it should be possible to
add an optional bright foreground color.
This is now added to the primary colors structure and allows the user to
set a foreground color for bold normal text. This has no effect unless
the draw_bold_text_with_bright_colors option is also enabled.
If the color is not specified, the bright foreground color will fall
back to the normal foreground color.
This fixes #825.
* Fix clone URL in deb install instructions
* Fix 'cargo-deb' desktop file name
* Remove redundant dependency from deb build
* Switch from deprecated `std::env::home_dir` to `dirs::home_dir`
* Allow specifying modifiers for mouse bindings
* Send newline with NumpadEnter
* Add support for LCD-V pixel mode
* Add binding action for hiding the window
* Switch to rustup clippy component
* Add optional dim foreground color
Add optional color for the dim foreground (`\e[2m;`)
Defaults to 2/3 of the foreground color. (same as other colors).
If a bright color is dimmed, it's displayed as the normal color. The
exception for this is when the bright foreground is dimmed when no
bright foreground color is set. In that case it's treated as a normal
foreground color and dimmed to DimForeground.
To minimize the surprise for the user, the bright and dim colors have
been completely removed from the default configuration file.
Some documentation has also been added to make it clear to users what
these options can be used for.
This fixes #1448.
* Fix clippy lints and run font tests on travis
This fixes some existing clippy issues and runs the `font` tests through travis.
Testing of copypasta crate was omitted due to problens when running on headless travis-ci environment (x11 clipboard would fail).
* Ignore errors when logger can't write to output
The (e)print macro will panic when there is no output available to
write to, however in our scenario where we only log user errors to
stderr, the better choice would be to ignore when writing to stdout or
stderr is not possible.
This changes the (e)print macro to make use of `write` and ignore
any potential errors.
Since (e)println rely on (e)print, this also solves potential failuers
when calling (e)println.
With this change implemented, all of logging, (e)println and (e)print
should never fail even if the stdout/stderr is not available.
2018-07-28 19:10:13 -04:00
|
|
|
|
2020-04-14 23:50:34 -04:00
|
|
|
# Thickness of the cursor relative to the cell width as floating point number
|
|
|
|
# from `0.0` to `1.0`.
|
|
|
|
#thickness: 0.15
|
|
|
|
|
2017-10-20 10:59:28 -04:00
|
|
|
# Live config reload (changes require restart)
|
2019-10-06 06:47:20 -04:00
|
|
|
#live_config_reload: true
|
2017-10-20 10:59:28 -04:00
|
|
|
|
|
|
|
# Shell
|
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
|
|
|
|
# Entries in `shell.args` are passed unmodified as arguments to the shell.
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
|
|
|
# Default:
|
2019-06-16 07:29:18 -04:00
|
|
|
# - (macOS) /bin/bash --login
|
2020-01-04 20:54:14 -05:00
|
|
|
# - (Linux/BSD) user login shell
|
2019-01-17 04:17:26 -05:00
|
|
|
# - (Windows) powershell
|
2018-09-21 22:46:41 -04:00
|
|
|
#shell:
|
|
|
|
# program: /bin/bash
|
|
|
|
# args:
|
|
|
|
# - --login
|
2017-10-20 10:59:28 -04:00
|
|
|
|
2019-05-10 07:36:16 -04:00
|
|
|
# Startup directory
|
|
|
|
#
|
|
|
|
# Directory the shell is started in. If this is unset, or `None`, the working
|
|
|
|
# directory of the parent process will be used.
|
2019-10-06 06:47:20 -04:00
|
|
|
#working_directory: None
|
2019-05-10 07:36:16 -04:00
|
|
|
|
2019-12-21 16:23:18 -05:00
|
|
|
# WinPTY backend (Windows only)
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
2019-12-21 16:23:18 -05:00
|
|
|
# Alacritty defaults to using the newer ConPTY backend if it is available,
|
|
|
|
# since it resolves a lot of bugs and is quite a bit faster. If it is not
|
2020-07-10 15:32:44 -04:00
|
|
|
# available, the WinPTY backend will be used instead.
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
2019-12-21 16:23:18 -05:00
|
|
|
# Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
|
|
|
|
# even if the ConPTY backend is available.
|
|
|
|
#winpty_backend: false
|
2019-01-17 04:17:26 -05:00
|
|
|
|
2019-01-17 15:42:12 -05:00
|
|
|
# Send ESC (\x1b) before characters when alt is pressed.
|
2019-10-06 06:47:20 -04:00
|
|
|
#alt_send_esc: true
|
2019-01-17 15:42:12 -05:00
|
|
|
|
2019-10-06 06:47:20 -04:00
|
|
|
#mouse:
|
2019-06-21 10:35:28 -04:00
|
|
|
# Click settings
|
|
|
|
#
|
|
|
|
# The `double_click` and `triple_click` settings control the time
|
|
|
|
# alacritty should wait for accepting multiple clicks as one double
|
|
|
|
# or triple click.
|
2019-10-06 06:47:20 -04:00
|
|
|
#double_click: { threshold: 300 }
|
|
|
|
#triple_click: { threshold: 300 }
|
2019-06-21 10:35:28 -04:00
|
|
|
|
|
|
|
# If this is `true`, the cursor is temporarily hidden when typing.
|
2019-10-06 06:47:20 -04:00
|
|
|
#hide_when_typing: false
|
2019-06-21 10:35:28 -04:00
|
|
|
|
2019-10-06 06:47:20 -04:00
|
|
|
#url:
|
2019-06-21 10:35:28 -04:00
|
|
|
# URL launcher
|
|
|
|
#
|
|
|
|
# This program is executed when clicking on a text which is recognized as a URL.
|
|
|
|
# The URL is always added to the command as the last parameter.
|
|
|
|
#
|
2020-05-13 22:35:23 -04:00
|
|
|
# When set to `launcher: None`, URL launching will be disabled completely.
|
2019-06-21 10:35:28 -04:00
|
|
|
#
|
|
|
|
# Default:
|
|
|
|
# - (macOS) open
|
2020-01-04 20:54:14 -05:00
|
|
|
# - (Linux/BSD) xdg-open
|
2019-06-21 10:35:28 -04:00
|
|
|
# - (Windows) explorer
|
|
|
|
#launcher:
|
|
|
|
# program: xdg-open
|
|
|
|
# args: []
|
|
|
|
|
|
|
|
# URL modifiers
|
|
|
|
#
|
|
|
|
# These are the modifiers that need to be held down for opening URLs when clicking
|
|
|
|
# on them. The available modifiers are documented in the key binding section.
|
2019-10-06 06:47:20 -04:00
|
|
|
#modifiers: None
|
2019-06-21 10:35:28 -04:00
|
|
|
|
|
|
|
# Mouse bindings
|
|
|
|
#
|
|
|
|
# Mouse bindings are specified as a list of objects, much like the key
|
|
|
|
# bindings further below.
|
|
|
|
#
|
2020-01-09 19:44:41 -05:00
|
|
|
# To trigger mouse bindings when an application running within Alacritty captures the mouse, the
|
|
|
|
# `Shift` modifier is automatically added as a requirement.
|
|
|
|
#
|
2019-06-21 10:35:28 -04:00
|
|
|
# Each mouse binding will specify a:
|
|
|
|
#
|
|
|
|
# - `mouse`:
|
|
|
|
#
|
|
|
|
# - Middle
|
|
|
|
# - Left
|
|
|
|
# - Right
|
|
|
|
# - Numeric identifier such as `5`
|
|
|
|
#
|
|
|
|
# - `action` (see key bindings)
|
|
|
|
#
|
|
|
|
# And optionally:
|
|
|
|
#
|
|
|
|
# - `mods` (see key bindings)
|
2019-10-06 06:47:20 -04:00
|
|
|
#mouse_bindings:
|
|
|
|
# - { mouse: Middle, action: PasteSelection }
|
2019-06-21 10:35:28 -04:00
|
|
|
|
2016-11-15 12:38:50 -05:00
|
|
|
# Key bindings
|
|
|
|
#
|
2019-06-21 10:35:28 -04:00
|
|
|
# Key bindings are specified as a list of objects. For example, this is the
|
|
|
|
# default paste binding:
|
|
|
|
#
|
|
|
|
# `- { key: V, mods: Control|Shift, action: Paste }`
|
|
|
|
#
|
|
|
|
# Each key binding will specify a:
|
|
|
|
#
|
|
|
|
# - `key`: Identifier of the key pressed
|
|
|
|
#
|
|
|
|
# - A-Z
|
2019-09-18 15:21:01 -04:00
|
|
|
# - F1-F24
|
2019-06-21 10:35:28 -04:00
|
|
|
# - Key0-Key9
|
|
|
|
#
|
|
|
|
# A full list with available key codes can be found here:
|
2019-10-04 06:27:06 -04:00
|
|
|
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
|
2019-06-21 10:35:28 -04:00
|
|
|
#
|
|
|
|
# Instead of using the name of the keys, the `key` field also supports using
|
|
|
|
# the scancode of the desired key. Scancodes have to be specified as a
|
|
|
|
# decimal number. This command will allow you to display the hex scancodes
|
|
|
|
# for certain keys:
|
|
|
|
#
|
|
|
|
# `showkey --scancodes`.
|
|
|
|
#
|
|
|
|
# Then exactly one of:
|
|
|
|
#
|
|
|
|
# - `chars`: Send a byte sequence to the running application
|
|
|
|
#
|
|
|
|
# The `chars` field writes the specified string to the terminal. This makes
|
|
|
|
# it possible to pass escape sequences. To find escape codes for bindings
|
|
|
|
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
|
|
|
|
# of tmux. Note that applications use terminfo to map escape sequences back
|
|
|
|
# to keys. It is therefore required to update the terminfo when changing an
|
|
|
|
# escape sequence.
|
|
|
|
#
|
|
|
|
# - `action`: Execute a predefined action
|
|
|
|
#
|
2020-03-17 22:35:08 -04:00
|
|
|
# - ToggleViMode
|
2020-07-09 17:45:22 -04:00
|
|
|
# - Search
|
|
|
|
# - SearchReverse
|
2019-06-21 10:35:28 -04:00
|
|
|
# - Copy
|
2018-09-21 22:46:41 -04:00
|
|
|
# - Paste
|
|
|
|
# - PasteSelection
|
|
|
|
# - IncreaseFontSize
|
|
|
|
# - DecreaseFontSize
|
|
|
|
# - ResetFontSize
|
|
|
|
# - ScrollPageUp
|
|
|
|
# - ScrollPageDown
|
2020-06-09 17:25:34 -04:00
|
|
|
# - ScrollHalfPageUp
|
|
|
|
# - ScrollHalfPageDown
|
2019-04-08 15:50:06 -04:00
|
|
|
# - ScrollLineUp
|
|
|
|
# - ScrollLineDown
|
2018-09-21 22:46:41 -04:00
|
|
|
# - ScrollToTop
|
|
|
|
# - ScrollToBottom
|
|
|
|
# - ClearHistory
|
|
|
|
# - Hide
|
2020-01-04 20:54:14 -05:00
|
|
|
# - Minimize
|
2018-09-21 22:46:41 -04:00
|
|
|
# - Quit
|
2019-04-23 15:05:47 -04:00
|
|
|
# - ToggleFullscreen
|
2019-06-21 10:35:28 -04:00
|
|
|
# - SpawnNewInstance
|
|
|
|
# - ClearLogNotice
|
2020-03-17 22:35:08 -04:00
|
|
|
# - ClearSelection
|
2019-09-27 20:37:22 -04:00
|
|
|
# - ReceiveChar
|
2019-01-17 04:17:26 -05:00
|
|
|
# - None
|
2016-11-15 12:38:50 -05:00
|
|
|
#
|
2020-03-17 22:35:08 -04:00
|
|
|
# (`mode: Vi` only):
|
|
|
|
# - Open
|
|
|
|
# - Up
|
|
|
|
# - Down
|
|
|
|
# - Left
|
|
|
|
# - Right
|
|
|
|
# - First
|
|
|
|
# - Last
|
|
|
|
# - FirstOccupied
|
|
|
|
# - High
|
|
|
|
# - Middle
|
|
|
|
# - Low
|
|
|
|
# - SemanticLeft
|
|
|
|
# - SemanticRight
|
|
|
|
# - SemanticLeftEnd
|
|
|
|
# - SemanticRightEnd
|
|
|
|
# - WordRight
|
|
|
|
# - WordLeft
|
|
|
|
# - WordRightEnd
|
|
|
|
# - WordLeftEnd
|
|
|
|
# - Bracket
|
|
|
|
# - ToggleNormalSelection
|
|
|
|
# - ToggleLineSelection
|
|
|
|
# - ToggleBlockSelection
|
|
|
|
# - ToggleSemanticSelection
|
2020-07-09 17:45:22 -04:00
|
|
|
# - SearchNext
|
|
|
|
# - SearchPrevious
|
|
|
|
# - SearchEndNext
|
|
|
|
# - SearchEndPrevious
|
2020-03-17 22:35:08 -04:00
|
|
|
#
|
2019-06-21 10:35:28 -04:00
|
|
|
# (macOS only):
|
2019-04-23 15:05:47 -04:00
|
|
|
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
|
|
|
|
#
|
2020-03-23 19:46:33 -04:00
|
|
|
# (Linux/BSD only):
|
|
|
|
# - CopySelection: Copies into selection buffer
|
|
|
|
#
|
2019-06-21 10:35:28 -04:00
|
|
|
# - `command`: Fork and execute a specified command plus arguments
|
|
|
|
#
|
|
|
|
# The `command` field must be a map containing a `program` string and an
|
|
|
|
# `args` array of command line parameter strings. For example:
|
|
|
|
# `{ program: "alacritty", args: ["-e", "vttest"] }`
|
|
|
|
#
|
|
|
|
# And optionally:
|
|
|
|
#
|
|
|
|
# - `mods`: Key modifiers to filter binding actions
|
|
|
|
#
|
|
|
|
# - Command
|
|
|
|
# - Control
|
|
|
|
# - Option
|
|
|
|
# - Super
|
|
|
|
# - Shift
|
|
|
|
# - Alt
|
|
|
|
#
|
|
|
|
# Multiple `mods` can be combined using `|` like this:
|
|
|
|
# `mods: Control|Shift`.
|
|
|
|
# Whitespace and capitalization are relevant and must match the example.
|
|
|
|
#
|
|
|
|
# - `mode`: Indicate a binding for only specific terminal reported modes
|
|
|
|
#
|
|
|
|
# This is mainly used to send applications the correct escape sequences
|
|
|
|
# when in different modes.
|
|
|
|
#
|
|
|
|
# - AppCursor
|
|
|
|
# - AppKeypad
|
|
|
|
# - Alt
|
2016-11-15 12:38:50 -05:00
|
|
|
#
|
2019-06-21 10:35:28 -04:00
|
|
|
# A `~` operator can be used before a mode to apply the binding whenever
|
|
|
|
# the mode is *not* active, e.g. `~Alt`.
|
2017-02-28 15:27:09 -05:00
|
|
|
#
|
2019-06-21 10:35:28 -04:00
|
|
|
# Bindings are always filled by default, but will be replaced when a new
|
|
|
|
# binding with the same triggers is defined. To unset a default binding, it can
|
2019-09-27 20:37:22 -04:00
|
|
|
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
|
|
|
|
# a no-op if you do not wish to receive input characters for that binding.
|
2020-02-05 17:59:16 -05:00
|
|
|
#
|
|
|
|
# If the same trigger is assigned to multiple actions, all of them are executed
|
|
|
|
# at once.
|
2019-10-06 06:47:20 -04:00
|
|
|
#key_bindings:
|
2020-03-19 08:00:32 -04:00
|
|
|
#- { key: Paste, action: Paste }
|
|
|
|
#- { key: Copy, action: Copy }
|
|
|
|
#- { key: L, mods: Control, action: ClearLogNotice }
|
|
|
|
#- { key: L, mods: Control, mode: ~Vi, chars: "\x0c" }
|
|
|
|
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
|
|
|
|
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
|
|
|
|
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
|
|
|
|
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
|
2020-03-17 22:35:08 -04:00
|
|
|
|
|
|
|
# Vi Mode
|
|
|
|
#- { key: Space, mods: Shift|Control, mode: Vi, action: ScrollToBottom }
|
|
|
|
#- { key: Space, mods: Shift|Control, action: ToggleViMode }
|
|
|
|
#- { key: Escape, mode: Vi, action: ClearSelection }
|
|
|
|
#- { key: I, mode: Vi, action: ScrollToBottom }
|
|
|
|
#- { key: I, mode: Vi, action: ToggleViMode }
|
|
|
|
#- { key: Y, mods: Control, mode: Vi, action: ScrollLineUp }
|
|
|
|
#- { key: E, mods: Control, mode: Vi, action: ScrollLineDown }
|
|
|
|
#- { key: G, mode: Vi, action: ScrollToTop }
|
|
|
|
#- { key: G, mods: Shift, mode: Vi, action: ScrollToBottom }
|
|
|
|
#- { key: B, mods: Control, mode: Vi, action: ScrollPageUp }
|
|
|
|
#- { key: F, mods: Control, mode: Vi, action: ScrollPageDown }
|
|
|
|
#- { key: U, mods: Control, mode: Vi, action: ScrollHalfPageUp }
|
|
|
|
#- { key: D, mods: Control, mode: Vi, action: ScrollHalfPageDown }
|
|
|
|
#- { key: Y, mode: Vi, action: Copy }
|
2020-03-23 19:46:33 -04:00
|
|
|
#- { key: Y, mode: Vi, action: ClearSelection }
|
|
|
|
#- { key: Copy, mode: Vi, action: ClearSelection }
|
2020-03-17 22:35:08 -04:00
|
|
|
#- { key: V, mode: Vi, action: ToggleNormalSelection }
|
|
|
|
#- { key: V, mods: Shift, mode: Vi, action: ToggleLineSelection }
|
|
|
|
#- { key: V, mods: Control, mode: Vi, action: ToggleBlockSelection }
|
|
|
|
#- { key: V, mods: Alt, mode: Vi, action: ToggleSemanticSelection }
|
|
|
|
#- { key: Return, mode: Vi, action: Open }
|
|
|
|
#- { key: K, mode: Vi, action: Up }
|
|
|
|
#- { key: J, mode: Vi, action: Down }
|
|
|
|
#- { key: H, mode: Vi, action: Left }
|
|
|
|
#- { key: L, mode: Vi, action: Right }
|
|
|
|
#- { key: Up, mode: Vi, action: Up }
|
|
|
|
#- { key: Down, mode: Vi, action: Down }
|
|
|
|
#- { key: Left, mode: Vi, action: Left }
|
|
|
|
#- { key: Right, mode: Vi, action: Right }
|
|
|
|
#- { key: Key0, mode: Vi, action: First }
|
|
|
|
#- { key: Key4, mods: Shift, mode: Vi, action: Last }
|
|
|
|
#- { key: Key6, mods: Shift, mode: Vi, action: FirstOccupied }
|
|
|
|
#- { key: H, mods: Shift, mode: Vi, action: High }
|
|
|
|
#- { key: M, mods: Shift, mode: Vi, action: Middle }
|
|
|
|
#- { key: L, mods: Shift, mode: Vi, action: Low }
|
|
|
|
#- { key: B, mode: Vi, action: SemanticLeft }
|
|
|
|
#- { key: W, mode: Vi, action: SemanticRight }
|
|
|
|
#- { key: E, mode: Vi, action: SemanticRightEnd }
|
|
|
|
#- { key: B, mods: Shift, mode: Vi, action: WordLeft }
|
|
|
|
#- { key: W, mods: Shift, mode: Vi, action: WordRight }
|
|
|
|
#- { key: E, mods: Shift, mode: Vi, action: WordRightEnd }
|
|
|
|
#- { key: Key5, mods: Shift, mode: Vi, action: Bracket }
|
2020-07-09 17:45:22 -04:00
|
|
|
#- { key: Slash, mode: Vi, action: Search }
|
|
|
|
#- { key: Slash, mods: Shift, mode: Vi, action: SearchReverse }
|
|
|
|
#- { key: N, mode: Vi, action: SearchNext }
|
|
|
|
#- { key: N, mods: Shift, mode: Vi, action: SearchPrevious }
|
2020-03-17 22:35:08 -04:00
|
|
|
|
2020-01-04 20:54:14 -05:00
|
|
|
# (Windows, Linux, and BSD only)
|
2020-03-23 19:46:33 -04:00
|
|
|
#- { key: V, mods: Control|Shift, action: Paste }
|
|
|
|
#- { key: C, mods: Control|Shift, action: Copy }
|
|
|
|
#- { key: C, mods: Control|Shift, mode: Vi, action: ClearSelection }
|
|
|
|
#- { key: Insert, mods: Shift, action: PasteSelection }
|
|
|
|
#- { key: Key0, mods: Control, action: ResetFontSize }
|
|
|
|
#- { key: Equals, mods: Control, action: IncreaseFontSize }
|
|
|
|
#- { key: Add, mods: Control, action: IncreaseFontSize }
|
|
|
|
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
|
|
|
#- { key: Minus, mods: Control, action: DecreaseFontSize }
|
2020-01-04 20:54:14 -05:00
|
|
|
|
|
|
|
# (Windows only)
|
2019-06-16 07:35:28 -04:00
|
|
|
#- { key: Return, mods: Alt, action: ToggleFullscreen }
|
2019-01-17 04:17:26 -05:00
|
|
|
|
|
|
|
# (macOS only)
|
2020-03-19 08:00:32 -04:00
|
|
|
#- { key: K, mods: Command, mode: ~Vi, chars: "\x0c" }
|
|
|
|
#- { key: Key0, mods: Command, action: ResetFontSize }
|
|
|
|
#- { key: Equals, mods: Command, action: IncreaseFontSize }
|
|
|
|
#- { key: Add, mods: Command, action: IncreaseFontSize }
|
|
|
|
#- { key: Minus, mods: Command, action: DecreaseFontSize }
|
|
|
|
#- { key: K, mods: Command, action: ClearHistory }
|
|
|
|
#- { key: V, mods: Command, action: Paste }
|
|
|
|
#- { key: C, mods: Command, action: Copy }
|
2020-03-23 19:46:33 -04:00
|
|
|
#- { key: C, mods: Command, mode: Vi, action: ClearSelection }
|
2020-03-19 08:00:32 -04:00
|
|
|
#- { key: H, mods: Command, action: Hide }
|
|
|
|
#- { key: M, mods: Command, action: Minimize }
|
|
|
|
#- { key: Q, mods: Command, action: Quit }
|
|
|
|
#- { key: W, mods: Command, action: Quit }
|
|
|
|
#- { key: N, mods: Command, action: SpawnNewInstance }
|
|
|
|
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
|
2020-03-01 16:41:05 -05:00
|
|
|
|
|
|
|
#debug:
|
|
|
|
# Display the time it takes to redraw each frame.
|
|
|
|
#render_timer: false
|
|
|
|
|
|
|
|
# Keep the log file after quitting Alacritty.
|
|
|
|
#persistent_logging: false
|
|
|
|
|
|
|
|
# Log level
|
|
|
|
#
|
|
|
|
# Values for `log_level`:
|
|
|
|
# - None
|
|
|
|
# - Error
|
|
|
|
# - Warn
|
|
|
|
# - Info
|
|
|
|
# - Debug
|
|
|
|
# - Trace
|
|
|
|
#log_level: Warn
|
|
|
|
|
|
|
|
# Print all received window events.
|
|
|
|
#print_events: false
|