Skip to content

Instantly share code, notes, and snippets.

@dariogguillen
Forked from emilsoman/tmux-layout.md
Created November 12, 2020 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dariogguillen/4341e122a199b80112a1bc3e811b8539 to your computer and use it in GitHub Desktop.
Save dariogguillen/4341e122a199b80112a1bc3e811b8539 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