aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.local/bin/stash-restore
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/hyprland/.local/bin/stash-restore')
-rwxr-xr-xdotfiles/hyprland/.local/bin/stash-restore18
1 files changed, 0 insertions, 18 deletions
diff --git a/dotfiles/hyprland/.local/bin/stash-restore b/dotfiles/hyprland/.local/bin/stash-restore
deleted file mode 100755
index ddaa5a4..0000000
--- a/dotfiles/hyprland/.local/bin/stash-restore
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-# Restore all windows from special:stash to current workspace
-# Preserves current master window position using batch commands
-
-workspace=$(hyprctl activeworkspace -j | jq -r '.id')
-original_focus=$(hyprctl activewindow -j | jq -r '.address')
-
-# Get all windows in special:stash
-stashed=$(hyprctl clients -j | jq -r '.[] | select(.workspace.name == "special:stash") | .address')
-
-if [ -z "$stashed" ]; then
- exit 0
-fi
-
-# Restore each window, then swap original back to master (batched for atomicity)
-for addr in $stashed; do
- hyprctl --batch "dispatch movetoworkspacesilent $workspace,address:$addr ; dispatch focuswindow address:$original_focus ; dispatch layoutmsg swapwithmaster master"
-done