diff options
author | Christian Duerr <contact@christianduerr.com> | 2024-10-15 18:32:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 18:32:50 +0000 |
commit | 2a2db5b6fd23adea88906b8c2ee81512cd44cd53 (patch) | |
tree | 46c314a8cfb6a94e2693f5e3e5e79e02877875f0 /alacritty/src/cli.rs | |
parent | 6ba69f8dd469e1a9aff0b48b3ae10ce4510ca1e3 (diff) | |
download | r-alacritty-2a2db5b6fd23adea88906b8c2ee81512cd44cd53.tar.gz r-alacritty-2a2db5b6fd23adea88906b8c2ee81512cd44cd53.tar.bz2 r-alacritty-2a2db5b6fd23adea88906b8c2ee81512cd44cd53.zip |
Add headless mode
This patch adds a daemon mode to Alacritty which allows starting the
Alacritty process without spawning an initial window.
While this does not provide any significant advantage over the existing
behavior of always spawning a window, it does integrate nicer with some
setups and is a pretty trivial addition.
Diffstat (limited to 'alacritty/src/cli.rs')
-rw-r--r-- | alacritty/src/cli.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs index 2b4afa02..bb0a24f4 100644 --- a/alacritty/src/cli.rs +++ b/alacritty/src/cli.rs @@ -26,7 +26,7 @@ pub struct Options { pub print_events: bool, /// Generates ref test. - #[clap(long)] + #[clap(long, conflicts_with("daemon"))] pub ref_test: bool, /// X11 window ID to embed Alacritty within (decimal or hexadecimal with "0x" prefix). @@ -62,6 +62,10 @@ pub struct Options { #[clap(short, conflicts_with("quiet"), action = ArgAction::Count)] verbose: u8, + /// Do not spawn an initial window. + #[clap(long)] + pub daemon: bool, + /// CLI options for config overrides. #[clap(skip)] pub config_options: ParsedOptions, |