enter hook command (#130)

new configuration option `enter_hook` can now be used to spawn a command when a client is entered
This commit is contained in:
Ferdinand Schober
2024-05-12 13:01:07 +02:00
committed by GitHub
parent e9738fc024
commit 799b45104a
5 changed files with 44 additions and 2 deletions

View File

@@ -102,6 +102,8 @@ pub struct ClientConfig {
pub port: u16,
/// position of a client on screen
pub pos: Position,
/// enter hook
pub cmd: Option<String>,
}
impl Default for ClientConfig {
@@ -111,6 +113,7 @@ impl Default for ClientConfig {
hostname: Default::default(),
fix_ips: Default::default(),
pos: Default::default(),
cmd: None,
}
}
}