diff --git a/README.md b/README.md index 9bf8e93..ddb960e 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,13 @@ A collection of Linux scripts and configs for use across multiple machines. When referring to `{repo_dir}`, use absolute paths (e.g., `~/scripts`). ### tmux Configuration +This config uses tmux plugin manager to add session save / reloading with tmux-ressurect. +Before using the config, please download the plugin manager with: +``` +git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm +``` -Add to `~/.tmux.conf`: +Then to use the config file, add to `~/.tmux.conf`: ``` source {repo_dir}/tmux.conf ``` @@ -43,6 +48,8 @@ include {repo_dir}/i3config |------------|-------------| | M-f | Prefix key (similar to $mod in i3) | | Prefix + Space | Send prefix | +| Prefix + Ctrl + s | Save session | +| Prefix + Ctrl + r | Restore session | | Prefix + ? | List keys | | Prefix + [ | Enter copy mode | | Prefix + ] | Paste buffer | diff --git a/tmux.conf b/tmux.conf index 8feb163..d76defc 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,3 +1,15 @@ +# Tmux plugins, requires tmux plugin manager +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-resurrect' + +# Other examples: +# set -g @plugin 'github_username/plugin_name' +# set -g @plugin 'github_username/plugin_name#branch' +# set -g @plugin 'git@github.com:user/plugin' +# set -g @plugin 'git@bitbucket.com:user/plugin' + + # Config that is very close to a i3 window manager's keybinding. set -s escape-time 0 setw -g aggressive-resize on @@ -104,3 +116,7 @@ bind-key ')' join-pane -t :10 # Kill Selected Pane bind-key q kill-pane + + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm'