https://github.com/pwittchen/tmux-auto-pane
a tiny tool for creating pre-defined tile layouts in tmux on linux with xdotool
https://github.com/pwittchen/tmux-auto-pane
pane shell tiles tmux xdotool
Last synced: 6 months ago
JSON representation
a tiny tool for creating pre-defined tile layouts in tmux on linux with xdotool
- Host: GitHub
- URL: https://github.com/pwittchen/tmux-auto-pane
- Owner: pwittchen
- License: apache-2.0
- Created: 2017-04-06T16:58:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T11:18:23.000Z (about 9 years ago)
- Last Synced: 2024-12-29T12:16:22.440Z (over 1 year ago)
- Topics: pane, shell, tiles, tmux, xdotool
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
tmux-auto-pane
==============
a tiny tool for creating pre-defined tile layouts in [tmux](https://tmux.github.io/) on linux with [xdotool](http://www.semicomplete.com/projects/xdotool)
requirements
------------
- [xdotool](http://www.semicomplete.com/projects/xdotool) is required to use that script, so it's working only on linux right now
- of course, we need to execute this script inside [tmux](https://tmux.github.io/)
usage
-----
call `tmux-auto-pane` script with one of the following parameters
```
--help | -h showing help
--1l1r one left, one right
--1l2r one left, two right
--2l1r two left, one right
--1u1d one up, one down
--1u2d on up, two down
--2u1d two up, one down
--4tiles 4 tiles, 1 in each corner
```
for example: `tmux-auto-pane --4tiles`
will generate such layout:
```
____ ____
| | |
|____|____|
| | |
|____|____|
```
we can also have the following layouts:
```
1l1r 1l2r 2l1r 1u1d 1u2d 2u1d
____ ____ ____ ____ ____ ____ _________ _________ ____ ____
| | | | | | | | | | | | | | | |
| | | | |____| |____| | |_________| |____ ____| |____|____|
| | | | | | | | | | | | | | | |
|____|____| |____|____| |____|____| |_________| |____|____| |_________|
```
installation and update
-----------------------
with **wget**:
```shell
sh -c "$(wget https://raw.githubusercontent.com/pwittchen/tmux-auto-pane/master/install.sh -O -)"
```
with **curl**:
```shell
sh -c "$(curl -fsSL https://raw.githubusercontent.com/pwittchen/tmux-auto-pane/master/install.sh)"
```