diff options
Diffstat (limited to 'accounts/gkleen@sif/niri')
-rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
19 | 19 | ||
20 | workspaces_json="$(niri msg -j workspaces)" | 20 | workspaces_json="$(niri msg -j workspaces)" |
21 | workspace_output="$(jq -r --arg workspace_name "$workspace_name" '.[] | select(.name == $workspace_name) | .output' <<<"$workspaces_json")" | 21 | workspace_output="$(jq -r --arg workspace_name "$workspace_name" '.[] | select(.name == $workspace_name) | .output' <<<"$workspaces_json")" |
22 | active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")" | 22 | # active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")" |
23 | active_output="$(jq -r '.[] | select(.is_focused) | .output' <<<"$workspaces_json")" | 23 | active_output="$(jq -r '.[] | select(.is_focused) | .output' <<<"$workspaces_json")" |
24 | if [[ $workspace_output != "$active_output" ]]; then | 24 | if [[ $workspace_output != "$active_output" ]]; then |
25 | niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output" | 25 | niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output" |