From 173d09693ac9c3551067a3a1d1c07e34b36f27c2 Mon Sep 17 00:00:00 2001 From: BZ Date: Sun, 24 Sep 2023 20:03:21 +0200 Subject: [PATCH] deprecate tmux_focus.sh --- tmux_focus.sh | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tmux_focus.sh b/tmux_focus.sh index b1c776f..bd4a694 100755 --- a/tmux_focus.sh +++ b/tmux_focus.sh @@ -7,12 +7,18 @@ wm_focus() { } case "$dir" in - "left") - if [ "$(tmux display-message -p '#{pane_at_left}')" -ne 1 ]; then tmux select-pane -L; else wm_focus; fi ;; - "right") - if [ "$(tmux display-message -p '#{pane_at_right}')" -ne 1 ]; then tmux select-pane -R; else wm_focus; fi ;; - "up") - if [ "$(tmux display-message -p '#{pane_at_top}')" -ne 1 ]; then tmux select-pane -U; else wm_focus; fi ;; - "down") - if [ "$(tmux display-message -p '#{pane_at_bottom}')" -ne 1 ]; then tmux select-pane -D; else wm_focus; fi ;; +"left") + if [ "$(tmux display-message -p '#{pane_at_left}')" -ne 1 ]; then tmux select-pane -L; else wm_focus; fi + ;; +"right") + if [ "$(tmux display-message -p '#{pane_at_right}')" -ne 1 ]; then tmux select-pane -R; else wm_focus; fi + ;; +"up") + if [ "$(tmux display-message -p '#{pane_at_top}')" -ne 1 ]; then tmux select-pane -U; else wm_focus; fi + ;; +"down") + if [ "$(tmux display-message -p '#{pane_at_bottom}')" -ne 1 ]; then tmux select-pane -D; else wm_focus; fi + ;; esac + +awesome-client 'require("naughty").notify({title = "awesomewm-vim-tmux-navigator", text = "tmux_focus.sh is deprecated. Please update your tmux keybinds."})'