diff options
Diffstat (limited to 'dotfiles/hyprland/.local/bin/stash-restore')
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/stash-restore | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dotfiles/hyprland/.local/bin/stash-restore b/dotfiles/hyprland/.local/bin/stash-restore new file mode 100755 index 0000000..e04945a --- /dev/null +++ b/dotfiles/hyprland/.local/bin/stash-restore @@ -0,0 +1,10 @@ +#!/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 |
