- #!/bin/bash
- TERMINAL="/home/swatson/.local/bin/st-term"
- function tmux_sesh_wind() {
- for sesh in $(tmux list-sessions -F "#S"); do
- for win in $(tmux list-windows -t $sesh -F "#W"); do
- echo "$sesh:$win";
- done;
- done;
- }
- RET=$(tmux_sesh_wind | rofi -dmenu -p "tmux window:")
- rofi-sensible-terminal -e tmux switch-client -t $RET
|