diff --git a/hyprman/src/main.rs b/hyprman/src/main.rs index 07ef679..54aee67 100644 --- a/hyprman/src/main.rs +++ b/hyprman/src/main.rs @@ -835,6 +835,7 @@ fn run_workspaces_client(config: &Config) { } } let mut workspaces_tmp = workspaces.clone(); + workspaces_tmp.sort_by(|a, b| a.id.cmp(&b.id)); let mut workspace = workspaces_tmp .iter_mut() .find(|w| w.id == active_id)