hyprland: Add multi-monitor support to tags.sh

This fixes an issue where the script would previously fail to work with
multiple monitors.
This commit is contained in:
Donovan Glover 2023-04-30 21:09:22 -04:00
parent 8e203e5a84
commit 6bfdb67480
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -6,6 +6,6 @@ ids="$(hyprctl clients -j | jq -r ".[] | select(.workspace.id == "$1") | .addres
# Move those windows to the current workspace
for id in $ids; do
hyprctl dispatch movetoworkspacesilent "$(hyprctl monitors | rg active | choose 2)",address:"$id"
hyprctl dispatch movetoworkspacesilent "$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .activeWorkspace.id')",address:"$id"
hyprctl dispatch focuswindow address:"$id"
done