about summary refs log tree commit diff
path: root/scripts/chat.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/chat.tmux.conf')
-rw-r--r--scripts/chat.tmux.conf39
1 files changed, 27 insertions, 12 deletions
diff --git a/scripts/chat.tmux.conf b/scripts/chat.tmux.conf
index 9191b1a..5307136 100644
--- a/scripts/chat.tmux.conf
+++ b/scripts/chat.tmux.conf
@@ -4,28 +4,43 @@
 new-session -t chat
 
 # intuitive navigation
-set-option -g	mode-keys	vi
-set-option -g	mouse	on
+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
+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
+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
+set-option -g	-- remain-on-exit	on
+set-hook -g	-- pane-died	respawn-pane
+
+
+# disarm ^C to avoid accidentially losing logs
+bind-key -n -N 'confirm INTR key'	-- C-c	\
+	confirm-before -p 'Send ^C? (y/N)'	-- 'send-keys	-- C-c'
+
+# intuitive refresh, just don't spam it ;-)
+bind-key -n -N 'pick chat network'	-- F1	choose-tree -Z
+
+# one-click version of default `C-b w' (shows preview windows)
+bind-key -n -N 'reconnect network'	-- F5	\
+	confirm-before -p 'reconnect network? (y/N)'	-- 'respawn-window -k'
+
+# immersive mode ;-)
+bind-key -n -N 'toggle fullscreen'	-- F11	set status
 
 
 ## 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
+new-window -n freenode	-- catgirl freenode
+new-window -n efnet	-- catgirl efnet
> 2018-09-13Preview with nick in input windowJune McEnroe 2018-09-13Never send PRIVMSG to TagStatus or TagVerboseJune McEnroe 2018-09-13Move color selection to format.cJune McEnroe 2018-09-13Fix len for format->split at end of stringJune McEnroe 2018-09-13Avoid uninitialized x in uiReadJune McEnroe 2018-09-13Add IRCDefault to colors enumJune McEnroe 2018-09-13Return a format->split even at the end of the stringJune McEnroe 2018-09-13Fix weird tab-complete after commaJune McEnroe I have no idea why I did this. 2018-09-13Rewrite UI againJune McEnroe The persistent topic is gone and the status line is now at the top. The status formatting still needs to be reworked. I also want to try showing the nick in the input window so it really looks like your next message. 2018-09-12Add note about C-oJune McEnroe Why are there so few well usable ctrl key bindings? 2018-09-12Use formatParse split to position input cursorJune McEnroe 2018-09-12Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe Ridiculous. 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe>June 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