Window list should now work for sway.

This commit is contained in:
stormdragon2976 2023-06-01 15:10:47 -04:00
parent 5851aec8b3
commit 61cdfffc0d

View File

@ -13,4 +13,11 @@ id="$(yad --title "I38" --list --separator "" --column "id" --column "Select Win
if [[ -z "${id}" ]]; then if [[ -z "${id}" ]]; then
exit 0 exit 0
fi fi
path="$(readlink -f $0)"
path="${path%/*/*}"
path="${path##*/}"
if [[ "$path" == "i3" ]]; then
i3-msg \[id="${id}"\] focus i3-msg \[id="${id}"\] focus
else
swaymsg \[id="${id}"\] focus
fi