diff --git a/ewwtilities/src/workspace_switcher.rs b/ewwtilities/src/workspace_switcher.rs index 395e675..865afd4 100644 --- a/ewwtilities/src/workspace_switcher.rs +++ b/ewwtilities/src/workspace_switcher.rs @@ -67,7 +67,7 @@ pub fn run_workspace_selector(cli: &CliArgs) { debug!("Monitor number adjusted: {}", monitor_num); // Because there is a monitor 0, make sure it is always at least monitor 1 - let target_workspace = cli.source_workspace.unwrap() * (monitor_num + 1) as i32; + let target_workspace = (cli.source_workspace.unwrap() * (monitor_num + 2) as i32) - 1; debug!("Target workspace: {}", target_workspace);