about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.77
-rw-r--r--scripts/chat.tmux.conf31
2 files changed, 37 insertions, 1 deletions
diff --git a/README.7 b/README.7
index 03a535d..9cd89df 100644
--- a/README.7
+++ b/README.7
@@ -1,4 +1,4 @@
-.Dd January 16, 2021
+.Dd January 18, 2021
 .Dt README 7
 .Os "Causal Agency"
 .\" To view this file, run: man ./README.7
@@ -179,6 +179,11 @@ XDG base directories
 .
 .Pp
 .Bl -tag -width "scripts/notify-send.scpt" -compact
+.It Pa scripts/chat.tmux.conf
+example
+.Xr tmux 1
+configuration for multiple networks
+and automatic reconnects
 .It Pa scripts/sandman.m
 sleep/wake wrapper for macOS
 .It Pa scripts/notify-send.scpt
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