#!/bin/bash # Restore all windows from special:stash to current workspace workspace=$(hyprctl activeworkspace -j | jq -r '.id') # Get all windows in special:stash and move them to current workspace hyprctl clients -j | jq -r '.[] | select(.workspace.name == "special:stash") | .address' | \ while read -r addr; do hyprctl dispatch movetoworkspacesilent "$workspace",address:"$addr" done