feat: add tmux and tmuxp (#1)

Allow terminal multiplexing through [`tmux`][0] and make it configurable using [`tmuxp`][1].

[0]: https://github.com/tmux/tmux
[1]: https://github.com/tmux-python/tmuxp

Co-authored-by: Joao P Dubas <joao.dubas@gmail.com>
Reviewed-on: #1
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
2023-10-15 21:00:49 +00:00
committed by João Paulo Dubas
parent fa879a6772
commit 3293ae8a3e
5 changed files with 147 additions and 3 deletions

23
config/tmuxp/dev.yml Normal file
View File

@@ -0,0 +1,23 @@
---
session_name: dev
start_directory: /opt/work
windows:
- window_name: main
layout: even-vertical
focus: true
panes:
- focus: true
- pane
- window_name: support
layout: even-vertical
start_directory: support
panes:
- shell_command:
- docker compose exec pgcli bash
- pane
- window_name: local
layout: even-vertical
start_directory: local
panes:
- pane
- pane

15
config/tmuxp/work.yml Normal file
View File

@@ -0,0 +1,15 @@
session_name: personal
start_directory: /opt/personal
windows:
- window_name: labs
focus: true
layout: even-vertical
start_directory: labs/
panes:
- focus: true
- pane
- window_name: ide
layout: even-vertical
panes:
- focus: true
- pane