You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[derive(Debug,Clone,Serialize,Deserialize)]// we'll be cloning it later onpubstructDispConfig{display:String,bar_name:String,}#[derive(Clone,Debug)]// we'll be cloning it later on#[derive(Serialize,Deserialize)]// we'll be cloning it later onstructComputerConfig{displays:Vec<DispConfig>,}let monitors = IntoParallelIterator::into_par_iter(computer.displays.clone());
rayon::spawn(move || {
monitors
.filter(|monitor| !monitor.bar_name.is_empty()).try_for_each(|monitor| {let sh = Shell::new()?;let display = monitor.display;info!("{display:?}");let barname = monitor.bar_name;let config = "~/.config/polybar/config.ini";cmd!(sh,"polybar --reload {barname} -c {config}").env("MONITOR", display)// .env("FC_DEBUG", "1").run()?;
anyhow::Ok(())});});
So i am trying to rewrite my polybar launch script in rust, in basg you can for a command to the background with the & symbol like so
Is there a way to do this with xshell?
The text was updated successfully, but these errors were encountered: