2023-04-30 18:59:04 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# Tag-like script that moves windows from X workspace to the current workspace
|
|
|
|
|
|
|
|
# Get IDs of windows on the other workspace
|
|
|
|
ids="$(hyprctl clients -j | jq -r ".[] | select(.workspace.id == "$1") | .address")"
|
|
|
|
|
|
|
|
# Move those windows to the current workspace
|
|
|
|
for id in $ids; do
|
2023-05-01 03:09:22 +02:00
|
|
|
hyprctl dispatch movetoworkspacesilent "$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .activeWorkspace.id')",address:"$id"
|
2023-04-30 18:59:04 +02:00
|
|
|
hyprctl dispatch focuswindow address:"$id"
|
|
|
|
done
|