[PATCH] Add example tmux(1) config

[PATCH] Add example tmux(1) config

From: Klemens Nanni
Spawn one catgirl per network and handle reconnects through tmux,
no extra tool required.
---
 scripts/chat.tmux.conf | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 scripts/chat.tmux.conf

diff --git a/scripts/chat.tmux.conf b/scripts/chat.tmux.conf
new file mode 100644
index 0000000..9191b1a
--- /dev/null
+++ b/scripts/chat.tmux.conf
@@ -0,0 +1,31 @@
+# use `tmux -L chat -f ./chat.tmux.conf attach-session' (without any other
+# options or parameters) to access this session group in its own tmux server,
+# not interfering with existing servers/sessions/configurations
+new-session -t chat
+
+# intuitive navigation
+set-option -g	mode-keys	vi
+set-option -g	mouse	on
+
+# indicate new messages
+set-option -g	monitor-activity	on
+set-option -g	monitor-bell	on
+
+# hardcode names during window creation
+set-option -g	automatic-rename	off
+set-option -g	allow-rename	off
+set-option -g	set-titles	off
+set-option -g	renumber-windows	on
+
+# clients exit on network errors, restart them automatically
+# (use `kill-pane'/`C-b x' to destroy windows)
+set-option -g	remain-on-exit	on
+set-hook -g	pane-died	respawn-pane
+
+
+## do not double-quote commands to avoid running through "sh -c"
+
+# IRC
+new-window -n efnet	-- catgirl efnet
+new-window -n freenode	-- catgirl freenode
+new-window -n hackint	-- catgirl hackint
-- 
2.30.0

Re: [PATCH] Add example tmux(1) config

From: Klemens Nanni
On Mon, Jan 18, 2021 at 05:59:00PM +0100, Klemens Nanni wrote:
> Spawn one catgirl per network and handle reconnects through tmux,
> no extra tool required.
Updated diff with README.7 mention.

-- >8 --
Subject: [PATCH] Add example tmux(1) config

Spawn one catgirl per network and handle reconnects through tmux,
no extra tool required.
---
 README.7               |  3 +++
 scripts/chat.tmux.conf | 31 +++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 scripts/chat.tmux.conf

diff --git a/README.7 b/README.7
index 03a535d..a4db8f1 100644
--- a/README.7
+++ b/README.7
@@ -192,6 +192,9 @@ implementation for chroot
 .It Pa scripts/sshd_config
 .Xr sshd 8
 configuration for public chroot
+.It Pa scripts/chat.tmux.conf
+.Xr tmux 1
+configuration for multiple networks and automatic reconnects
 .El
 .
 .Sh CONTRIBUTING
diff --git a/scripts/chat.tmux.conf b/scripts/chat.tmux.conf
new file mode 100644
index 0000000..9191b1a
--- /dev/null
+++ b/scripts/chat.tmux.conf
@@ -0,0 +1,31 @@
+# use `tmux -L chat -f ./chat.tmux.conf attach-session' (without any other
+# options or parameters) to access this session group in its own tmux server,
+# not interfering with existing servers/sessions/configurations
+new-session -t chat
+
+# intuitive navigation
+set-option -g	mode-keys	vi
+set-option -g	mouse	on
+
+# indicate new messages
+set-option -g	monitor-activity	on
+set-option -g	monitor-bell	on
+
+# hardcode names during window creation
+set-option -g	automatic-rename	off
+set-option -g	allow-rename	off
+set-option -g	set-titles	off
+set-option -g	renumber-windows	on
+
+# clients exit on network errors, restart them automatically
+# (use `kill-pane'/`C-b x' to destroy windows)
+set-option -g	remain-on-exit	on
+set-hook -g	pane-died	respawn-pane
+
+
+## do not double-quote commands to avoid running through "sh -c"
+
+# IRC
+new-window -n efnet	-- catgirl efnet
+new-window -n freenode	-- catgirl freenode
+new-window -n hackint	-- catgirl hackint
-- 
2.30.0

Re: [PATCH] Add example tmux(1) config

From: June Bug
> On Jan 18, 2021, at 12:12, Klemens Nanni <klemens@posteo.de> wrote:
> 
> On Mon, Jan 18, 2021 at 05:59:00PM +0100, Klemens Nanni wrote:
>> Spawn one catgirl per network and handle reconnects through tmux,
>> no extra tool required.
> Updated diff with README.7 mention.

Thanks, applied.