deprecate tmux_focus.sh

This commit is contained in:
BZ 2023-09-24 20:03:21 +02:00
parent 4656af8ca9
commit 173d09693a
1 changed files with 14 additions and 8 deletions

View File

@ -8,11 +8,17 @@ wm_focus() {
case "$dir" in case "$dir" in
"left") "left")
if [ "$(tmux display-message -p '#{pane_at_left}')" -ne 1 ]; then tmux select-pane -L; else wm_focus; fi ;; if [ "$(tmux display-message -p '#{pane_at_left}')" -ne 1 ]; then tmux select-pane -L; else wm_focus; fi
;;
"right") "right")
if [ "$(tmux display-message -p '#{pane_at_right}')" -ne 1 ]; then tmux select-pane -R; else wm_focus; fi ;; if [ "$(tmux display-message -p '#{pane_at_right}')" -ne 1 ]; then tmux select-pane -R; else wm_focus; fi
;;
"up") "up")
if [ "$(tmux display-message -p '#{pane_at_top}')" -ne 1 ]; then tmux select-pane -U; else wm_focus; fi ;; if [ "$(tmux display-message -p '#{pane_at_top}')" -ne 1 ]; then tmux select-pane -U; else wm_focus; fi
;;
"down") "down")
if [ "$(tmux display-message -p '#{pane_at_bottom}')" -ne 1 ]; then tmux select-pane -D; else wm_focus; fi ;; if [ "$(tmux display-message -p '#{pane_at_bottom}')" -ne 1 ]; then tmux select-pane -D; else wm_focus; fi
;;
esac esac
awesome-client 'require("naughty").notify({title = "awesomewm-vim-tmux-navigator", text = "tmux_focus.sh is deprecated. Please update your tmux keybinds."})'