Skip to content

Instantly share code, notes, and snippets.

@iceqp
Forked from emilsoman/tmux-layout.md
Created July 19, 2017 11:43
Show Gist options
  • Save iceqp/dd16d6dfc7127d943be826caf3bf864f to your computer and use it in GitHub Desktop.
Save iceqp/dd16d6dfc7127d943be826caf3bf864f 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