mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-15 11:21:42 +01:00
328f30151b
I may simplify this later.
12 lines
476 B
Bash
Executable File
12 lines
476 B
Bash
Executable File
#!/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 -j | jq -r '.[] | select(.focused==true) | .activeWorkspace.id')",address:"$id"
|
|
hyprctl dispatch focuswindow address:"$id"
|
|
done
|