Skip to content

Instantly share code, notes, and snippets.

@nemanjan00
Last active March 27, 2016 18:40
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 nemanjan00/7faa1f0aae96e8c891dc to your computer and use it in GitHub Desktop.
Save nemanjan00/7faa1f0aae96e8c891dc to your computer and use it in GitHub Desktop.

Idea

Structure

Workspaces

tmux actually gives unique ids for windows and they persist even when windows are reordered:

╭─nemanjan00@nemanjan00-laptop  ~  
╰─$ tmux list-windows -t turizam
1: php (1 panes) [192x53] [layout bbc5,192x53,0,0,8] @8
2: index.php (1 panes) [192x53] [layout 5e12,192x53,0,0,13] @13
3: ..rizam-laravel (1 panes) [192x53] [layout 5e15,192x53,0,0,16] @16
4: ..rizam-laravel- (1 panes) [192x53] [layout 5e17,192x53,0,0,18] @18
5: ..rizam-laravel* (1 panes) [192x53] [layout 5e18,192x53,0,0,19] @19 (active)

So, workspaces would be tmux windows.

Workspace components

+-------------------------------------------------+
| File | Edit | Help                              | <- Context menu
|-------------------------------------------------|
| I C O N S                                       | <- Icons that call some URL
|-------------------------------------------------|
|                         |                       |
|                         |                       |
|                         |                       |
|                         |                       |
|                         |                       | <- Vertical stack of iframes
|       TERMINAL          |     IFRAME            |
|                         |                       |
|                         |                       |
|                         |                       |
|                         |                       |
|                         |                       |
|                         |                       |
|                         |                       |
|-------------------------------------------------|
| Tab1 | Tab2 | Tab3                              | <- Tabs for area below
|-------------------------------------------------|
|                                                 |
|                                                 | <- Area for tab content
|                                                 |
|-------------------------------------------------|
|                                                 | <- Status bar
+-------------------------------------------------+

Startup

  • In terminal, tmux is ran inside default shell with ENV variables about web-term instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment