fix: Fixes windowctl to handle when ctrl-c is hit from the window-picker, when not launched in a new terminal window. Adds a few more options to that allow to return to the window picker after performing certain actions on a selected window.

This commit is contained in:
2025-10-06 16:32:26 -04:00
parent 54fe479ee1
commit b5198a5df6
4 changed files with 94 additions and 28 deletions

View File

@@ -76,9 +76,11 @@ sel=$(
--preview-label='[ Window Stats ]' --delimiter='|' --with-nth=2 \
--preview="$SCRIPTS/hypr/preview-stats window {1}"
)
status=$?
[[ -z $sel ]] && exit 1
# revove everything but the address portion.
sel=${sel%%|*}
echo "$sel"
exit $status