summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/niri
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-26 15:24:06 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-26 15:24:06 +0100
commit14015cbb8184622ed4079648ab01bec20e2844e0 (patch)
tree65f7c50fe2d9d182626e5c04504306fe80d97867 /accounts/gkleen@sif/niri
parentc817a13e220c2fd418df24d41a99aeb35f3154eb (diff)
downloadnixos-14015cbb8184622ed4079648ab01bec20e2844e0.tar
nixos-14015cbb8184622ed4079648ab01bec20e2844e0.tar.gz
nixos-14015cbb8184622ed4079648ab01bec20e2844e0.tar.bz2
nixos-14015cbb8184622ed4079648ab01bec20e2844e0.tar.xz
nixos-14015cbb8184622ed4079648ab01bec20e2844e0.zip
...
Diffstat (limited to 'accounts/gkleen@sif/niri')
-rw-r--r--accounts/gkleen@sif/niri/default.nix2
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"