rofi/rtmux.sh
1	#!/bin/bash
2
3 TERMINAL="/home/swatson/.local/bin/st-term"
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 | rofi -dmenu -p "tmux window:")
14
15 rofi-sensible-terminal -e tmux switch-client -t $RET