Update wofi-alt-tab.sh

This commit is contained in:
John Mertz 2022-09-22 13:48:43 -04:00
parent 6b53d53196
commit 8bff2f7147
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,8 @@ swaymsg -t get_tree |
grep -v '__i3_scratch' | grep -v '__i3_scratch' |
sed -e 's/\([^\-]\)\- *[^\-]*$/\1/' | sed -e 's/\([^\-]\)\- *[^\-]*$/\1/' |
sed -e 's/^\([0-9]*\)\t*\(.*\)/\2 \1/' | sed -e 's/^\([0-9]*\)\t*\(.*\)/\2 \1/' |
wofi -I --show dmenu | { wofi -I -s /home/jpm/.dotfiles/wofi/style.css -c \
read -r id name $HOME/.dotfiles/wofi/sidebar --show dmenu | {
swaymsg "[con_id=$id]" focus read -r id name
} swaymsg "[con_id=$id]" focus
}