Window list bound to apostrophe in ratpoison mode.

This commit is contained in:
Storm Dragon
2022-11-25 02:35:58 -05:00
parent 7412503611
commit 96fa9c3f3a
3 changed files with 14 additions and 0 deletions

10
scripts/window_list.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
select_window() {
local window="$(yad --list --column "Select Window" "$@")"
echo "${window%|}"
}
i3-msg '[title="'$(i3-msg -t get_tree | jq -r "recurse(.nodes[]) | select(.window) | .name" | select_window)'"] focus'
exit 0