dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 8a297feec4cbe438ccab2c331c243a3d09de28ec
parent 8df32d695e40fedae444b5b62ef270753c88c94a
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Thu, 21 Dec 2017 15:49:49 -0500

Improve window splitting, allow in any direction

Diffstat:
Mlinks/.tmux.conf | 34++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)

diff --git a/links/.tmux.conf b/links/.tmux.conf @@ -67,10 +67,10 @@ bind -r K resize-pane -U 5 # resize pane up with <C-a>K bind -r L resize-pane -R 5 # resize pane right with <C-a>L # Navigate panes with Meta (alt) modifier + hjkl -bind -r -n M-h select-pane -L # navigate left with <C-a>h -bind -r -n M-j select-pane -D # navigate down with <C-a>j -bind -r -n M-k select-pane -U # navigate up with <C-a>k -bind -r -n M-l select-pane -R # navigate right with <C-a>l +#bind -r -n M-h select-pane -L # navigate left with <C-a>h +#bind -r -n M-j select-pane -D # navigate down with <C-a>j +#bind -r -n M-k select-pane -U # navigate up with <C-a>k +#bind -r -n M-l select-pane -R # navigate right with <C-a>l bind -r -n M-H resize-pane -L 5 # resize pane left with <C-a>H bind -r -n M-J resize-pane -D 5 # resize pane down with <C-a>J bind -r -n M-K resize-pane -U 5 # resize pane up with <C-a>K @@ -98,8 +98,8 @@ bind-key C-s last-window # go to last window with <C-a><C-s> bind-key C-a last-pane # go to last pane with <C-a><C-a> bind-key -r n next-window # next window with <C-a>n -bind-key -n -r M-k next-window # next window with <M-n> -bind-key -n -r M-j previous-window # previous window with <M-n> +#bind-key -n -r M-k next-window # next window with <M-n> +#bind-key -n -r M-j previous-window # previous window with <M-n> #### LAYOUT CHANGING BINDINGS @@ -108,8 +108,10 @@ bind-key -n -r M-j previous-window # previous window with <M-n> bind-key '"' split-window -c "#{pane_current_path}" bind-key '%' split-window -h -c "#{pane_current_path}" -bind-key -n M-'"' split-window -c "#{pane_current_path}" -bind-key -n M-'%' split-window -h -c "#{pane_current_path}" +bind-key -n M-k split-window -b -c "#{pane_current_path}" # new split up +bind-key -n M-j split-window -c "#{pane_current_path}" # new split down +bind-key -n M-l split-window -h -c "#{pane_current_path}" # new split right +bind-key -n M-h split-window -b -h -c "#{pane_current_path}" # new split left bind -r z resize-pane -Z # toggle pane zoom with <C-a>z bind -r y next-layout # cycle to next pane layout with <C-a>y @@ -158,14 +160,14 @@ bind-key O split-window -p 25 '$SHELL -c "offlineimap"' \; select-pane -l # Use nested bindings (<C-a>l) for grouping process launch bindings bind l switchc -Tlaunch -bind-key -n M-l switchc -Tlaunch -bind -Tlaunch m new-window -n mutt "mutt" -bind -Tlaunch v new-window -n vim "vim" -bind -Tlaunch r new-window -n rss "feednix" -bind -Tlaunch w new-window -n weather \ +#bind-key -n M-l switchc -Tlaunch +bind-key C-M-m new-window -n mutt "mutt" +bind-key C-M-v new-window -n vim "vim" +bind-key C-M-r new-window -n rss "feednix" +bind-key C-M-w new-window -n weather \ "curl 'wttr.in/?m'; echo -e '\nPress <enter> to quit'; read -n 1 -s" -bind -Tlaunch s split-window -l 2 \; send-keys "susan " -bind -Tlaunch h split-window -l 8 "htop" +#bind-key C-M-s split-window -l 2 \; send-keys "susan " +#bind-key C-M-h split-window -l 8 "htop" # Open new window and resize status accordingly (should be a hook instead) #bind-key Enter new-window @@ -189,7 +191,7 @@ bind-key -n C-M-p display "#(mpc toggle | tr '\n' ' ')" bind-key -n C-M-s display "#(mpc stop | tr '\n' ' ')" bind-key -n C-M-n display "#(mpc next | tr '\n' ' ')" bind-key -n C-M-b display "#(mpc prev | tr '\n' ' ')" -bind-key -n C-M-r display "#(mpc clear && mpc ls | mpc add && mpc random on && mpc play | tr '\n' ' ')" +#bind-key -n C-M-r display "#(mpc clear && mpc ls | mpc add && mpc random on && mpc play | tr '\n' ' ')" bind-key -n C-M-a split-window -p 50 "source ~/code/fzf-mpd/fzf-mpd.zsh fzf && fm" # Use alternate prefix (C-b) for grouping music-control bindings