From 14015cbb8184622ed4079648ab01bec20e2844e0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 26 Jan 2025 15:24:06 +0100 Subject: ... --- accounts/gkleen@sif/niri/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accounts/gkleen@sif/niri') diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 93acc7d7..bf124211 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix @@ -19,7 +19,7 @@ let workspaces_json="$(niri msg -j workspaces)" workspace_output="$(jq -r --arg workspace_name "$workspace_name" '.[] | select(.name == $workspace_name) | .output' <<<"$workspaces_json")" - active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")" + # active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")" active_output="$(jq -r '.[] | select(.is_focused) | .output' <<<"$workspaces_json")" if [[ $workspace_output != "$active_output" ]]; then niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output" -- cgit v1.2.3