rofi/wtmux.sh
1	#!/bin/bash
2
3 TERMINAL="/usr/bin/st"
4
5 function tmux_sesh_wind() {
6 for sesh in $(tmux list-sessions -F "#S"); do
7 for win in $(tmux list-windows -t $sesh -F "#W"); do
8 echo "$sesh:$win";
9 done;
10 done;
11 }
12
13 RET=$(tmux_sesh_wind | wofi --dmenu -p "tmux window:")
14
15 $TERMINAL tmux switch-client -t $RET