wtmux.sh 306 B

123456789101112131415
  1. #!/bin/bash
  2. TERMINAL="/usr/bin/st"
  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 | wofi --dmenu -p "tmux window:")
  11. $TERMINAL tmux switch-client -t $RET