about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKlemens Nanni <klemens@posteo.de>2021-01-18 18:12:45 +0100
committerJune McEnroe <june@causal.agency>2021-01-18 14:44:49 -0500
commitf944c6455d14e8819e00ad3371d35a9465968d94 (patch)
treeac0fbd174dfd9325f3d80d26e1c09c08ddc6257b
parentUse Warm heat for blank lines (diff)
downloadcatgirl-f944c6455d14e8819e00ad3371d35a9465968d94.tar.gz
catgirl-f944c6455d14e8819e00ad3371d35a9465968d94.zip
Add example tmux(1) config
Spawn one catgirl per network and handle reconnects through tmux,
no extra tool required.
-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
t'> Heard at cafe. 2020-01-01Update license header templates for the new yearJune McEnroe 2019-12-26Add \S to sort inside bracesJune McEnroe 2019-12-23Reformat music.txtJune McEnroe 2019-12-23Rename music.md to music.txtJune McEnroe 2019-12-23Add DO YOU DOUBT ME TRAITORJune McEnroe 2019-12-22Add license header to cgit CSSJune McEnroe As requested. Funny that its license header capitalizes You. 2019-12-22Add The Book of EttaJune McEnroe 2019-12-21Revert "Add first working version of imbox"June McEnroe Moved to <https://git.causal.agency/imbox>. This reverts commit 7ff5f3fd826e313ce8353a532bdfa4989dc946dc. 2019-12-21Add first working version of imboxJune McEnroe 2019-12-20Respect mailmap in gl pretty formatJune McEnroe 2019-12-20Set LANG in cgit filtersJune McEnroe ttpre needs to know about UTF-8 too so it can bold/italic non-ASCII chars. 2019-12-20Source .editrc before applying -v or -eJune McEnroe Otherwise a bind -v in .editrc will take precedence and overwrite the ^I binding for sh-complete. 2019-12-20Disable signing commitsJune McEnroe Why did I ever turn this on? This gets me nothing but inconvenience. RIP to all the wasted bytes in my git repos. 2019-12-19Ignore about-filterJune McEnroe 2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe Hack: output an extra <td> after rendering mdoc so that line numbers can be hidden based on there being three. This required splitting source-filter and about-filter since on about pages there is no table. 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe :target persists after you click on something else. 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe