[][src]Struct alacritty::config::Config

pub struct Config { /* fields omitted */ }

Top-level config type

Methods

impl Config[src]

pub fn installed_config<'a>() -> Option<Cow<'a, Path>>[src]

Get the location of the first found default config file paths according to the following order:

  1. $XDG_CONFIG_HOME/alacritty/alacritty.yml
  2. $XDG_CONFIG_HOME/alacritty.yml
  3. $HOME/.config/alacritty/alacritty.yml
  4. $HOME/.alacritty.yml

pub fn write_defaults() -> Result<Cow<'static, Path>>[src]

pub fn colors(&self) -> &Colors[src]

Get list of colors

The ordering returned here is expected by the terminal. Colors are simply indexed in this array for performance.

pub fn background_opacity(&self) -> Alpha[src]

pub fn key_bindings(&self) -> &[KeyBinding][src]

pub fn mouse_bindings(&self) -> &[MouseBinding][src]

pub fn mouse(&self) -> &Mouse[src]

pub fn selection(&self) -> &Selection[src]

pub fn tabspaces(&self) -> usize[src]

pub fn padding(&self) -> &Delta<u8>[src]

pub fn draw_bold_text_with_bright_colors(&self) -> bool[src]

pub fn font(&self) -> &Font[src]

Get font config

pub fn dimensions(&self) -> Dimensions[src]

Get window dimensions

pub fn window(&self) -> &WindowConfig[src]

Get window config

pub fn visual_bell(&self) -> &VisualBellConfig[src]

Get visual bell config

pub fn render_timer(&self) -> bool[src]

Should show render timer

pub fn use_thin_strokes(&self) -> bool[src]

pub fn path(&self) -> Option<&Path>[src]

pub fn shell(&self) -> Option<&Shell>[src]

pub fn env(&self) -> &HashMap<String, String>[src]

pub fn hide_mouse_when_typing(&self) -> bool[src]

Should hide mouse cursor when typing

pub fn cursor_style(&self) -> CursorStyle[src]

Style of the cursor

pub fn unfocused_hollow_cursor(&self) -> bool[src]

Use hollow block cursor when unfocused

pub fn live_config_reload(&self) -> bool[src]

Live config reload

pub fn dynamic_title(&self) -> bool[src]

pub fn scrolling(&self) -> Scrolling[src]

Scrolling settings

pub fn cursor_text_color(&self) -> Option<Rgb>[src]

Cursor foreground color

pub fn cursor_cursor_color(&self) -> Option<Rgb>[src]

Cursor background color

pub fn alt_send_esc(&self) -> bool[src]

Send escape sequences using the alt key

pub fn set_history(&mut self, history: u32)[src]

pub fn persistent_logging(&self) -> bool[src]

Keep the log file after quitting Alacritty

pub fn update_dynamic_title(self, options: &Options) -> Self[src]

Overrides the dynamic_title configuration based on --title.

pub fn load_from(path: PathBuf) -> Config[src]

pub fn reload_from(path: &PathBuf) -> Result<Config>[src]

Trait Implementations

impl Default for Config[src]

impl PartialEq<Config> for Config[src]

impl Debug for Config[src]

impl<'de> Deserialize<'de> for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]