diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-26 15:24:06 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-26 15:24:06 +0100 |
commit | 14015cbb8184622ed4079648ab01bec20e2844e0 (patch) | |
tree | 65f7c50fe2d9d182626e5c04504306fe80d97867 /accounts/gkleen@sif/niri/default.nix | |
parent | c817a13e220c2fd418df24d41a99aeb35f3154eb (diff) | |
download | nixos-14015cbb8184622ed4079648ab01bec20e2844e0.tar nixos-14015cbb8184622ed4079648ab01bec20e2844e0.tar.gz nixos-14015cbb8184622ed4079648ab01bec20e2844e0.tar.bz2 nixos-14015cbb8184622ed4079648ab01bec20e2844e0.tar.xz nixos-14015cbb8184622ed4079648ab01bec20e2844e0.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/niri/default.nix')
-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" |