diff --git a/hyprland/.config/hypr/tags.sh b/hyprland/.config/hypr/tags.sh new file mode 100755 index 0000000..767908a --- /dev/null +++ b/hyprland/.config/hypr/tags.sh @@ -0,0 +1,11 @@ +#!/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 + hyprctl dispatch movetoworkspacesilent "$(hyprctl monitors | rg active | choose 2)",address:"$id" + hyprctl dispatch focuswindow address:"$id" +done