feat: marking windows, then closing/moving them to current workspace

This commit is contained in:
2025-07-04 13:08:01 +03:00
parent 64e27bc4c8
commit dbcff6dc1e
5 changed files with 76 additions and 4 deletions

17
hypr/scripts/move_marked.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
count_moved = 0
while true; do
result=$(hyprctl dispatch movetoworkspace e+0,tag:marked)
if [ "$result" != "Window not found" ]; then
echo "moved window because '$result'"
result=$(hyprctl dispatch tagwindow -- -marked tag:marked)
echo "tried umarking and was told $result"
((count_closed++))
else
echo "exiting due to '$result'"
break
fi
done