detect old or new tmux mouse support and use proper options accordingly
This commit is contained in:
parent
300dc1d069
commit
5133275e15
33
.tmux.conf
33
.tmux.conf
|
@ -303,17 +303,34 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# toggle_mouse() {
|
# toggle_mouse() {
|
||||||
# old=$(tmux show -g | grep mouse | head -n 1 | cut -d' ' -f2)
|
# if (tmux show -g -w |grep -q mode-mouse); then
|
||||||
# new=""
|
# old=$(tmux show -g -w | grep mode-mouse | cut -d' ' -f2)
|
||||||
|
# new=""
|
||||||
#
|
#
|
||||||
# if [ "$old" = "on" ] ; then
|
# if [ "$old" = "on" ] ; then
|
||||||
# new="off"
|
# new="off"
|
||||||
|
# else
|
||||||
|
# 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 \;\
|
||||||
|
# display "mouse: $new"
|
||||||
# else
|
# else
|
||||||
# new="on"
|
# old=$(tmux show -g | grep mouse | head -n 1 | cut -d' ' -f2)
|
||||||
# fi
|
# new=""
|
||||||
#
|
#
|
||||||
# tmux set -g mouse $new \;\
|
# if [ "$old" = "on" ] ; then
|
||||||
# display "mouse: $new"
|
# new="off"
|
||||||
|
# else
|
||||||
|
# new="on"
|
||||||
|
# fi
|
||||||
|
#
|
||||||
|
# tmux set -g mouse $new \;\
|
||||||
|
# display "mouse: $new"
|
||||||
|
# fi
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# battery() {
|
# battery() {
|
||||||
|
|
Loading…
Reference in New Issue