pub struct UiConfig {Show 20 fields
pub general: General,
pub env: HashMap<String, String>,
pub scrolling: Scrolling,
pub cursor: Cursor,
pub selection: Selection,
pub font: Font,
pub window: WindowConfig,
pub mouse: Mouse,
pub debug: Debug,
pub bell: BellConfig,
pub colors: Colors,
pub config_paths: Vec<PathBuf>,
pub hints: Hints,
pub terminal: Terminal,
keyboard: Keyboard,
shell: Option<Program>,
import: Option<Vec<String>>,
working_directory: Option<PathBuf>,
live_config_reload: Option<bool>,
pub ipc_socket: Option<bool>,
}
Fields§
§general: General
Miscellaneous configuration options.
env: HashMap<String, String>
Extra environment variables.
scrolling: Scrolling
How much scrolling history to keep.
cursor: Cursor
Cursor configuration.
selection: Selection
Selection configuration.
font: Font
Font configuration.
window: WindowConfig
Window configuration.
mouse: Mouse
Mouse configuration.
debug: Debug
Debug options.
bell: BellConfig
Bell configuration.
colors: Colors
RGB values for colors.
config_paths: Vec<PathBuf>
Path where config was loaded from.
hints: Hints
Regex hints for interacting with terminal content.
terminal: Terminal
Config for the alacritty_terminal itself.
keyboard: Keyboard
Keyboard configuration.
shell: Option<Program>
Path to a shell program to run on startup.
import: Option<Vec<String>>
Configuration file imports.
This is never read since the field is directly accessed through the config’s
toml::Value
, but still present to prevent unused field warnings.
working_directory: Option<PathBuf>
Shell startup directory.
live_config_reload: Option<bool>
Live config reload.
ipc_socket: Option<bool>
Offer IPC through a unix socket.
Implementations§
source§impl UiConfig
impl UiConfig
sourcepub fn term_options(&self) -> TermConfig
pub fn term_options(&self) -> TermConfig
Derive TermConfig
from the config.
sourcepub fn pty_config(&self) -> PtyOptions
pub fn pty_config(&self) -> PtyOptions
Derive PtyOptions
from the config.
sourcepub fn generate_hint_bindings(&mut self)
pub fn generate_hint_bindings(&mut self)
Generate key bindings for all keyboard hints.
pub fn window_opacity(&self) -> f32
pub fn key_bindings(&self) -> &[Binding<BindingKey>]
pub fn mouse_bindings(&self) -> &[Binding<MouseButton>]
pub fn live_config_reload(&self) -> bool
pub fn ipc_socket(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for UiConfig
impl<'de> Deserialize<'de> for UiConfig
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
source§impl PartialEq<UiConfig> for UiConfig
impl PartialEq<UiConfig> for UiConfig
source§impl<'de> SerdeReplace for UiConfig
impl<'de> SerdeReplace for UiConfig
impl StructuralPartialEq for UiConfig
Auto Trait Implementations§
impl !RefUnwindSafe for UiConfig
impl !Send for UiConfig
impl !Sync for UiConfig
impl Unpin for UiConfig
impl !UnwindSafe for UiConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.