rtmux.sh 342 B

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