diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-26 13:27:10 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-26 13:27:10 +0100 |
commit | c817a13e220c2fd418df24d41a99aeb35f3154eb (patch) | |
tree | fd2a293c193464649afdee1950e52b431fd5f2a0 /accounts/gkleen@sif/niri/default.nix | |
parent | 01de0c24e3be9445f7e753de7a443655eb51394f (diff) | |
download | nixos-c817a13e220c2fd418df24d41a99aeb35f3154eb.tar nixos-c817a13e220c2fd418df24d41a99aeb35f3154eb.tar.gz nixos-c817a13e220c2fd418df24d41a99aeb35f3154eb.tar.bz2 nixos-c817a13e220c2fd418df24d41a99aeb35f3154eb.tar.xz nixos-c817a13e220c2fd418df24d41a99aeb35f3154eb.zip |
bump
Diffstat (limited to 'accounts/gkleen@sif/niri/default.nix')
-rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 2e9b6909..93acc7d7 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
@@ -22,9 +22,9 @@ let | |||
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 --output "$active_output" "$workspace_name" | 25 | niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output" |
26 | socat STDIO "$NIRI_SOCKET" <<<'{"Action":{"FocusWorkspace":{"reference":{"Id":'"''${active_workspace}"'}}}}' | 26 | # socat STDIO "$NIRI_SOCKET" <<<'{"Action":{"FocusWorkspace":{"reference":{"Id":'"''${active_workspace}"'}}}}' |
27 | niri msg action move-workspace-to-index --index 1 "$workspace_name" | 27 | # niri msg action move-workspace-to-index --reference "$workspace_name" 1 |
28 | fi | 28 | fi |
29 | 29 | ||
30 | while IFS=$'\n' read -r window_json; do | 30 | while IFS=$'\n' read -r window_json; do |