Update wofi-alt-tab.sh

This commit is contained in:
John Mertz 2022-09-22 13:48:43 -04:00
parent ccdf61d77d
commit 84ba87dcf8
1 changed files with 5 additions and 4 deletions

View File

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