From 54835f209475cf6ace7fcd7fab8140ecedcec340 Mon Sep 17 00:00:00 2001 From: jmaud Date: Wed, 8 Oct 2014 21:23:20 -0400 Subject: [PATCH] Updates to tmux.conf Added reloading tmux configuration --- tmux.html.markdown | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/tmux.html.markdown b/tmux.html.markdown index 79829c88..ebc312ed 100644 --- a/tmux.html.markdown +++ b/tmux.html.markdown @@ -135,23 +135,27 @@ set -g base-index 1 # Mouse set-option -g mouse-select-pane on +# Force reload of config file +unbind r +bind r source-file ~/.tmux.conf + ### Keybinds ########################################################################### # Unbind C-b as the default prefix -unbind-key C-b +unbind C-b # Set new default prefix set-option -g prefix ` # Return to previous window when prefix is pressed twice -bind-key C-a last-window -bind-key ` last-window +bind C-a last-window +bind ` last-window # Allow swapping C-a and ` using F11/F12 -bind-key F11 set-option -g prefix C-a -bind-key F12 set-option -g prefix ` +bind F11 set-option -g prefix C-a +bind F12 set-option -g prefix ` # Keybind preference setw -g mode-keys vi @@ -176,7 +180,7 @@ unbind '"' unbind % # Activate inner-most session (when nesting tmux) to send commands -bind-key a send-prefix +bind a send-prefix ### Theme @@ -224,9 +228,17 @@ set-option -g set-titles on set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not) # Statusbar Adjustments -set -g status-left "#[fg=red] #H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]" +set -g status-left "#[fg=red] #H#[fg=green]:#[fg=white]#S#[fg=green] |#[default]" # Show performance counters in statusbar # Requires https://github.com/thewtex/tmux-mem-cpu-load/ -#set -g status-interval 4 -#set -g status-right "#[fg=green]][ #[fg=white]#(tmux-mem-cpu-load) #[fg=green]][ #[fg=yellow]%H:%M #[default]" +set -g status-interval 4 +set -g status-right "#[fg=green] | #[fg=white]#(tmux-mem-cpu-load)#[fg=green] | #[fg=cyan]%H:%M #[default]" + +``` + +Tmux | Home
+Tmux Manual page
+Archlinux Wiki
+Gentoo Wiki
+Display CPU/MEM % in statusbar