From 53abd1dca856d002d97a6ddcc0858229494e6a3c Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Mon, 14 Sep 2015 21:41:45 +0200 Subject: [PATCH] use new tmux mouse support --- .tmux.conf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index ca5316b..f9c92f4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -303,7 +303,7 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na # } # # toggle_mouse() { -# old=$(tmux show -g -w | grep mode-mouse | cut -d' ' -f2) +# old=$(tmux show -g | grep mouse | head -n 1 | cut -d' ' -f2) # new="" # # if [ "$old" = "on" ] ; then @@ -312,10 +312,7 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na # new="on" # fi # -# tmux set -g mode-mouse $new \;\ -# set -g mouse-resize-pane $new \;\ -# set -g mouse-select-pane $new \;\ -# set -g mouse-select-window $new \;\ +# tmux set -g mouse $new \;\ # display "mouse: $new" # } #