about summary refs log tree commit diff
path: root/scripts
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 /scripts
parentUse Warm heat for blank lines (diff)
downloadtest-f944c6455d14e8819e00ad3371d35a9465968d94.tar.gz
test-f944c6455d14e8819e00ad3371d35a9465968d94.zip
Add example tmux(1) config
Spawn one catgirl per network and handle reconnects through tmux,
no extra tool required.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/chat.tmux.conf31
1 files changed, 31 insertions, 0 deletions
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
class='logsubject'>Take first two words in colorMentionsJune McEnroe This lets phrases like "hi june" get colored, but still doesn't get carried away. 2020-02-11Use time_t for save signatureJune McEnroe It's actually more likely to be 64-bit than size_t anyway, and it eliminates some helper functions. Also don't error when reading an empty save file. 2020-02-11Set self.nick to * initiallyJune McEnroe Allows removing a bunch of checks that self.nick is set, and it's what the server usually calls you before registration. Never highlight notices as mentions. 2020-02-11Define ColorCap instead of hardcoding 100June McEnroe 2020-02-11Move hash to top of chat.hJune McEnroe 2020-02-11Move base64 out of chat.hJune McEnroe 2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe Rookie mistake. 2020-02-11Cast towupper to wchar_tJune McEnroe For some reason it takes and returns wint_t... 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe