Skip to content

Commit

Permalink
fix(exec): increase wait time for centering scratchpad
Browse files Browse the repository at this point in the history
  • Loading branch information
matejc committed Jul 31, 2024
1 parent 2f4d399 commit 75a7b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn exec(client: &mut Client, mark: String, command: String, arguments: Vec<Strin
if value["container"]["pid"] == child_pid {
let id: u32 = value["container"]["id"].as_u64().unwrap() as u32;
client.run(command::raw(format!("mark {mark}, move scratchpad, focus")).with_criteria(vec![con_id(id)])).unwrap();
thread::sleep(Duration::from_millis(50));
thread::sleep(Duration::from_millis(100));
client.run(command::raw(format!("{window_center}")).with_criteria(vec![con_id(id)])).unwrap();
return;
}
Expand Down

0 comments on commit 75a7b5a

Please sign in to comment.