simplified _toggle_mouse() implementation
This commit is contained in:
parent
07685c156d
commit
03ec982a50
1 changed files with 8 additions and 25 deletions
19
.tmux.conf
19
.tmux.conf
|
@ -215,23 +215,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
|||
# }
|
||||
#
|
||||
# _toggle_mouse() {
|
||||
# if tmux show -g -w | grep -q mode-mouse; then
|
||||
# old=$(tmux show -g -w | grep mode-mouse | cut -d' ' -f2)
|
||||
# new=""
|
||||
#
|
||||
# if [ "$old" = "on" ]; then
|
||||
# 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
|
||||
# old=$(tmux show -g | grep mouse | head -n 1 | cut -d' ' -f2)
|
||||
# old=$(tmux show -gv mouse)
|
||||
# new=""
|
||||
#
|
||||
# if [ "$old" = "on" ]; then
|
||||
|
@ -242,7 +226,6 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
|||
#
|
||||
# tmux set -g mouse $new \;\
|
||||
# display "mouse: $new"
|
||||
# fi
|
||||
# }
|
||||
#
|
||||
# _battery() {
|
||||
|
|
Loading…
Reference in a new issue