Commit Graph

20 Commits (b6c72806498e95cb08606a7ec46742e5439d3348)

Author SHA1 Message Date
June McEnroe 28a27a2c0f Move sandman build to scripts/Makefile 2022-02-12 20:19:18 -05:00
C. McEnroe 54c632e8c3 chroot: Factor out and add OpenBSD build 2021-09-27 19:16:45 +00:00
C. McEnroe 78a020df82 chroot: Avoid passing paths to -s 2021-07-20 21:27:24 -04:00
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 b106440752 Set username from SSH_CLIENT in chroot 2021-05-27 15:53:02 +00:00
C. McEnroe 5e7c31b637 Log nick and ssh connection in chroot-prompt 2021-05-27 15:19:33 +00: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
C. McEnroe 444d4bda9a Fix chroot-man path 2020-07-31 12:49:54 -04:00
C. McEnroe 529028fe4a Use DisableForwarding in sshd_config 2020-06-25 00:40:00 -04:00
C. McEnroe 16b16a72e5 Replace int opt; while with for loop in sandman 2020-03-31 10:17:21 -04:00
C. McEnroe 9bed890aa8 Add sandman wrapper 2020-02-12 21:31:09 -05:00
C. McEnroe 180bbc7b38 Add -N flag for notifications 2020-02-12 20:12:34 -05:00
C. McEnroe fea344b7df Add .gz to chroot-man script 2020-02-11 22:43:25 -05:00
C. McEnroe 252428f97a Add chroot target 2020-02-11 22:28:39 -05:00