From ec6fb501dc9bfcae1f284a40206f1112c02b59a5 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 10 Oct 2024 22:18:52 -0700 Subject: [PATCH] Add hints overlay --- .tmux.conf | 5 +++++ .tmux/hints | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .tmux/hints diff --git a/.tmux.conf b/.tmux.conf index 0c7d543..0fc14db 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -4,6 +4,9 @@ # Custom Prefix set -g prefix C-space +# Shortcut to custom hints +bind-key -n C-h run-shell "tmux popup -xC -yC -w50% -h75% 'cat ~/.tmux/hints'" + # Shortcut to sync panes bind C-x setw synchronize-panes @@ -56,6 +59,8 @@ set -g status-style bg='#222222',fg='#AD7FA8' # Status set -g status-left '#{?client_prefix,#[fg=#008b8b]█, }' +set -g status-right '#[fg=#ad7fa8]#(hostname -I | cut -d" " -f1) %Y-%m-%d %H:%M' +#hostname -I | cut -d' ' -f1 set -g status-interval 1 set-window-option -g window-status-style fg='#008b8b',bg=default set-window-option -g window-status-current-style fg='#222222',bg='#ad7fa8' diff --git a/.tmux/hints b/.tmux/hints new file mode 100644 index 0000000..3a1932e --- /dev/null +++ b/.tmux/hints @@ -0,0 +1,11 @@ +Prefix +C-x Sync Panes +C-R Reload tmux + c New Console + , Rename Console + z Zoom Pane + +No Prefix +C-S-> Next Console +C-S-< Prev Console +C-arrow Navigate Panes