Debian Codegraph @

scripts/chat.tmux.conf

raw
1 # use `tmux -L chat -f ./chat.tmux.conf attach-session' (without any other
2 # options or parameters) to access this session group in its own tmux server,
3 # not interfering with existing servers/sessions/configurations
4
5 new-session -t chat
6
7 # catgirl(1) puts windows at the top
8 set-option -g -- status-position top
9
10 # intuitive navigation
11 set-option -g -- mode-keys vi
12 set-option -g -- mouse on
13
14 # indicate new messages
15 set-option -g -- monitor-activity on
16 set-option -g -- monitor-bell on
17
18 # hardcode names during window creation
19 set-option -g -- automatic-rename off
20 set-option -g -- allow-rename off
21 set-option -g -- set-titles off
22 set-option -g -- renumber-windows on
23 # for the F1 binding, make hotkeys match window numbers
24 set-option -g -- base-index 1
25
26
27 # clients exit on network errors, restart them automatically
28 # (use `kill-pane'/`C-b x' to destroy windows)
29 set-option -g -- remain-on-exit on
30 set-hook -g -- pane-died respawn-pane
31
32
33 # disarm ^C to avoid accidentially losing logs
34 bind-key -n -N 'confirm INTR key' -- C-c \
35 confirm-before -p 'Send ^C? (y/N)' -- 'send-keys -- C-c'
36
37 # one-click version of default `C-b w' (shows preview windows)
38 bind-key -n -N 'pick chat network' -- F1 choose-tree -Z
39
40 # catgirl(1) might run in `-R'/`restrict'ed mode, i.e. `/help' is disabled
41 bind-key -n -N 'read catgirl help' -- F2 \
42 new-window -S -n help -- man -s 1 -- catgirl
43
44 # intuitive refresh, just don't spam it ;-)
45 bind-key -n -N 'reconnect network' -- F5 \
46 confirm-before -p 'reconnect network? (y/N)' -- 'respawn-pane -k'
47
48 # immersive mode ;-)
49 bind-key -n -N 'toggle fullscreen' -- F11 set status
50
51
52 # this configuration is idempotent, i.e. reloading it only changes settings
53 # and never duplicates already existing windows
54 bind-key -N 'reload configuration' -- R {
55 source-file -F -- '#{source_files}'
56 display-message -- 'configuration reloaded'
57 }
58
59
60 ## do not double-quote commands to avoid running through "sh -c"
61
62 # IRC
63 new-window -d -S -n hackint -- catgirl -- defaults hackint
64 new-window -d -S -n efnet -- catgirl -- defaults efnet