Skip to main content

A Terminator Terminal Layout Builder

Project description

Terminator Layout Builder

Manage Terminator layouts easily using YAML file.

Terminator Layout Builder

Installation

pip install terminator-layout-builder

Usage

Create a layout file in ~/.config/terminator/layout.yaml.

The file can contain a layout as simplest as this.

layoutA:
  - cmd: pwd

or as complex as this

layoutA:
  - cmd: pwd

layoutB:
  # A window
  - root: $HOME/project # root for this window
    vertical:
      panes:
        - cmd: pwd && echo $SHELL
        - cmd: whoami

  # Another window
  - root: "/tmp"
    tabs:
      labels:
        - Logs
        - Services
        - Monitoring
      items:
        - horizontal:
            ratio: 0.5
            panes:
              - vertical:
                  ratio: 0.67
                  panes:
                    - title: "some title"
                      cmd: pwd
                    - root: "~" # overwrite window's root
                      cmd: pwd
              - cmd: tail -f /var/log/syslog
        - horizontal:
            panes:
              - cmd: tail -f /dev/null
              - cmd: tail -f /dev/null
        - cmd: htop

Next, run tlb and the layouts will be merge into your Terminator config, and you can start your layout by using Terminator Layout Launcher.

Alternatively, you can also use tlb -l <layout> (alias to terminator -u -m -b -l <layout>) to launch your Terminator with the layout.

Inspirations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terminator-layout-builder-0.1.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

terminator_layout_builder-0.1.1-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page