wofi-alt-tab.sh
This commit is contained in:
parent
9dd860332a
commit
0c17da8c14
|
@ -5,8 +5,10 @@ swaymsg -t get_tree |
|
||||||
sed -e 's/^.*\-\- \(.*\)$/\1/' |
|
sed -e 's/^.*\-\- \(.*\)$/\1/' |
|
||||||
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 -s /home/jpm/.dotfiles/wofi/style.css -c \
|
wofi -s $HOME/.dotfiles/wofi/style.css -c \
|
||||||
$HOME/.dotfiles/wofi/sidebar --show dmenu | {
|
$HOME/.dotfiles/wofi/sidebar -d | {
|
||||||
read -r id name
|
read -r
|
||||||
swaymsg "[con_id=$id]" focus
|
id=`echo $REPLY | rev | cut -d' ' -f1 | rev`
|
||||||
}
|
swaymsg "[con_id=$id]" focus
|
||||||
|
}
|
||||||
|
echo $id $REPLY
|
||||||
|
|
Loading…
Reference in New Issue