Skip to content

Instantly share code, notes, and snippets.

@raecoo
Forked from emilsoman/tmux-layout.md
Created April 6, 2017 10:52
Show Gist options
  • Save raecoo/61cf256a469f07363f6d06af36d98a84 to your computer and use it in GitHub Desktop.
Save raecoo/61cf256a469f07363f6d06af36d98a84 to your computer and use it in GitHub Desktop.
Easy tmux layouts for tmuxinator

Tmux layouts with tmuxinator

Finally this time, I'm sold on tmux after I used tmuxinator to configure tmux layouts. The default layout didn't work for me, I wanted more control on the split panes. Here's how you can fine tune your tmux layout:

  1. Add this to your ~/.tmux.conf -> set -g mouse-resize-pane on
  2. Start tmux, split panes, resize panes with mouse to your liking
  3. On your shell, run tmux list-windows to list active tmux windows and their layouts
  4. Copy paste the layout in tmuxinator project file

Also, if you want to customize the tmux status bar colors, use this script on your shell to print all 256 colors.

for i in {0..255} ; do
    printf "\x1b[38;5;${i}mcolour${i}\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment