Commit Graph

8 Commits (e7cec137239be76c7777b4e6406a0cb089d7a634)

Author SHA1 Message Date
Klemens Nanni 773d5bbdc0 chat.tmux.conf: Fix base-index setting
"base-index" expects integer values, tmux prints a warning at load-time
but otherwise ignores the configuration line.
2021-07-15 14:43:30 -04:00
Klemens Nanni 948e6d5479 chat.tmux.conf: Make window selection hotkeys match window numbers
The 'pick chat network' binding on F1 lists tmux windows as follows
and tmux's `choose-tree -Z' lets you jump to the window by pressing the
key denoted inside parantheses.

Set `base-index 1' so as to make window indices match up the hotkey
number instead of being off-by-one due to the session itself being the
first entry in the list.

  (0)   - chat-5: 8 windows (group chat: chat-0,chat-1,chat-2,chat-3,chat-4,chat-5,chat-6) (attached)
  (1)   ├─>   1: hackint: "example.com"
  (2)   ├─>   2: efnet: "example.com"
  ...

PS: Update existing sessions by updating chat.tmux.conf, pressing F5
then running `prefix-: move-window -r' to renumber all windows.
2021-06-17 11:37:40 -04:00
C. McEnroe c501437735 Replace freenode with tilde.chat 2021-05-19 11:00:15 -04:00
Klemens Nanni 441f561f72 chat.tmux.conf: use config_files format for reload
The recent addition of "#{source_files}" allows us to avoid hardcoding
the file name and instead ask tmux itself for the very file it used to
create the session in the first place, i.e. "-f ./chat.tmux.conf".
2021-03-10 20:24:39 -05:00
Klemens Nanni ab744d74e1 chat.tmux.conf: Add help window for restricted mode, use neww -S
Provide a hotkey to browser the manual in its own window.

After input, nicm (tmux upstream) added "-S" to tmux(1) such that
the "new-window" command (in combination with "-d") first looks
for the given window name and selects the window if it exists
instead of trying to create a window that already exists.

Given that this makes chat.tmux.conf idempotent, we can now also reload
it at runtime to refresh settings.
2021-02-08 18:31:06 -05:00
Klemens Nanni 0c5730708f chat.tmux.conf: Improve respawn, fix comment
Only respawn the pane not the entire window to avoid killing other
possibly existing panes in the same window.
2021-02-03 14:31:44 -05:00
Klemens Nanni e1da93b0aa Add key bindings to chat.tmux.conf, nits 2021-01-28 16:00:04 -05:00
Klemens Nanni f944c6455d Add example tmux(1) config
Spawn one catgirl per network and handle reconnects through tmux,
no extra tool required.
2021-01-18 14:44:49 -05:00