Genelate layout template for tmuxinator.
Project description
panediv_nfw
Generate tmux layout string from simple format.
Install
$ pip3 install panediv-nfw
$ sudo ln -s ~/.local/bin/panediv /usr/local/bin
Usage
$ panediv -h
usage: panediv [-h] [--tmuxinator] [--show_layout] [--show_commands] [--show_matrix] layout
Generate layout string from simple format.
positional arguments:
layout Layout string, ex.) {,}. Without other options, start tmux.
optional arguments:
-h, --help show this help message and exit
--tmuxinator, -i Export tmuxnator configuration.
--show_layout, -l Print layout string.
--show_commands, -c Print command list.
--show_matrix, -m Print pane number matrix.
Examples
Simple 3 rows
- panediv '[,,]'
- panediv '[3]'
Simple 3 columns
- panediv '{,,}'
- panediv '{3}'
Simple 3 rows with commands
- panediv '[/usr/games/sl,"figlet \"pane 2\"",]'
Specify size, 10 lines, 15 lines, left
- panediv '[(,10),(,15),]'
Specify size, 20 percent, 30 percent, left
- panediv '[(,20%),(,30%),]'
Specify command and size
- panediv '[(/usr/games/sl,20%),("figlet \"pane 2\"",10),]'
Complex layout
- panediv '{[{,[2]},,{[2],}],,[{[2],},,{,[2]}]}'
Export TmuxInator configuration.
- panediv -i /tmp/layout '{/usr/games/sl, [1,"figlet \"pane 3\"",2],}' && tmuxinator start -p /tmp/layout
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
panediv-nfw-0.1.1.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file panediv-nfw-0.1.1.tar.gz
.
File metadata
- Download URL: panediv-nfw-0.1.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d39444ca7f7b37ba74f0f2c626660224571f128f5a27ad3bf69b9e6e9159fb2f |
|
MD5 | 39e81acf1d4c4107bea763a5fd721e81 |
|
BLAKE2b-256 | d604d35801bae4754eed67ba16806515c52ca03943edc76e9c4bceb27a0cd7fb |
File details
Details for the file panediv_nfw-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: panediv_nfw-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74a955d8b9d32d81fe6ef024585c5ac6de8a2bf024cff768f5ebee75f1a47852 |
|
MD5 | 950e359d0487b1c7dd7e584f934e4e70 |
|
BLAKE2b-256 | e7d1e04a2183928feaa674a838e8fc99edc2b2c8001e635aeab27f45f2b2a84b |