diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-07-10 22:32:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 22:32:44 +0300 |
commit | 8bd2c13490f8cb6ad6b0c1104f9586b3554efea2 (patch) | |
tree | 6909d3be00c72c3c5acdd173aa7f411a1bc6b445 /alacritty/src/config | |
parent | b78f3d133960dad38ad21e808723e51661b59881 (diff) | |
download | r-alacritty-8bd2c13490f8cb6ad6b0c1104f9586b3554efea2.tar.gz r-alacritty-8bd2c13490f8cb6ad6b0c1104f9586b3554efea2.tar.bz2 r-alacritty-8bd2c13490f8cb6ad6b0c1104f9586b3554efea2.zip |
Add option to run command on bell
Fixes #1528.
Diffstat (limited to 'alacritty/src/config')
-rw-r--r-- | alacritty/src/config/mod.rs | 7 | ||||
-rw-r--r-- | alacritty/src/config/monitor.rs | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/alacritty/src/config/mod.rs b/alacritty/src/config/mod.rs index f416039c..ffa7cbd3 100644 --- a/alacritty/src/config/mod.rs +++ b/alacritty/src/config/mod.rs @@ -217,6 +217,13 @@ fn print_deprecation_warnings(config: &Config) { the config" ); } + + if config.visual_bell.is_some() { + warn!( + target: LOG_TARGET_CONFIG, + "Config visual_bell has been deprecated; please use bell instead" + ) + } } #[cfg(test)] diff --git a/alacritty/src/config/monitor.rs b/alacritty/src/config/monitor.rs index 42603c7e..2ed0c426 100644 --- a/alacritty/src/config/monitor.rs +++ b/alacritty/src/config/monitor.rs @@ -4,7 +4,7 @@ use std::time::Duration; use notify::{watcher, DebouncedEvent, RecursiveMode, Watcher}; -use alacritty_terminal::util; +use alacritty_terminal::thread; use crate::event::{Event, EventProxy}; @@ -20,7 +20,7 @@ impl Monitor { let path = path.into(); Monitor { - _thread: util::thread::spawn_named("config watcher", move || { + _thread: thread::spawn_named("config watcher", move || { let (tx, rx) = mpsc::channel(); // The Duration argument is a debouncing period. let mut watcher = |