feat: marking windows, then closing/moving them to current workspace
This commit is contained in:
15
hypr/scripts/close_marked.sh
Executable file
15
hypr/scripts/close_marked.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
count_closed = 0
|
||||
|
||||
while true; do
|
||||
result=$(hyprctl dispatch closewindow tag:marked)
|
||||
|
||||
if [ "$result" != "closeWindow: no window found" ]; then
|
||||
echo "closed window because '$result'"
|
||||
((count_closed++))
|
||||
else
|
||||
echo "exiting due to '$result'"
|
||||
break
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user