summaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.local/bin/stash-restore
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-29 23:06:41 -0600
committerCraig Jennings <c@cjennings.net>2026-01-29 23:06:41 -0600
commitc378c2f075845f6a8110be37ca7fbb7fc98721c7 (patch)
treeecad884574df40ac80f44cf9001eb201d5362110 /dotfiles/hyprland/.local/bin/stash-restore
parent0da19ea3454ec54b47c31f921c5c9697c10648f9 (diff)
feat(hyprland): add pyprland for scratchpads, magnify, and window stashing
Replace native special workspace scratchpads with pyprland to fix issue where new windows were captured by visible scratchpads. Add magnify on mod+Z and window stash scripts (mod+O to stash, mod+Alt+O stash others, mod+Shift+O restore).
Diffstat (limited to 'dotfiles/hyprland/.local/bin/stash-restore')
-rwxr-xr-xdotfiles/hyprland/.local/bin/stash-restore10
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