feat: marking windows, then closing/moving them to current workspace
This commit is contained in:
17
hypr/scripts/move_marked.sh
Executable file
17
hypr/scripts/move_marked.sh
Executable 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
|
||||
Reference in New Issue
Block a user