Skip to content
Create tmux commands from a JSON layout description
JavaScript PureScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Data
.gitignore
Makefile
README.md
package.json
tmux-layout.js

README.md

tmux-layout

A tiny utitility to generate tmux commands from a layout description in JSON format.

Installation

Make sure you have installed node.js including NPM

 sudo npm install -g tmux-layout

Usage

Start a new tmux session with a given layout

tmux-layout # uses tmux.json file in current directory
tmux-layout /path/to/layout.json

Print out the "compiled" tmux command

tmux-layout -c /path/to/layout.json

Layout Files

The layout files are kept very simple, yet. The following example file should suffice for documentation purporses:

{
  "title": "tmux-layout (Purescript)",
  "windows": [
    {
      "title": "Main",
      "layout": {
        "left": {
          "top": "psci",
          "bottom": "git status"
        },
        "right": "ls -al"
      }
    }
  ]
}
You can’t perform that action at this time.