diff --git a/.install.conf.yaml b/.install.conf.yaml index fcf782a..b9204f9 100644 --- a/.install.conf.yaml +++ b/.install.conf.yaml @@ -11,6 +11,9 @@ ~/.vim: vim ~/.vimrc: vim/vimrc + # Tmux + ~/.tmux.conf: tmux/tmux.conf + # bash ~/.bash: force: true diff --git a/README.md b/README.md index cc1191d..514de93 100644 --- a/README.md +++ b/README.md @@ -46,10 +46,31 @@ To only install certain parts of the config, pass the `--only` flag to the insta - [git](https://git-scm.com/) - Version control system Ubuntu: `sudo apt install -y zsh vim tmux ranger git` + Arch Linux: `sudo pacman -S zsh vim tmux ranger git` +Depending on your setup, `make`, `ctags` and `python3-pip` may also be needed + --- ## Details + + +### Tmux + +Fairly standard Tmux configuration, strongly based off Tmux-sensible. Configuration is defined in [`.tmux.conf`](https://github.com/Lissy93/dotfiles/blob/master/tmux/tmux.conf) + +Tmux plugins are managed using [TMP](https://github.com/tmux-plugins/tpm) and defined in [`.tmux.conf`](https://github.com/Lissy93/dotfiles/blob/master/tmux/tmux.conf). To install them from GitHub, run `prefix` + I from within Tmux, and they will be cloned int `~/.tmux/plugins/`. + +#### Plugins + +- **[Tmux-sensible](https://github.com/tmux-plugins/tmux-sensible)**: `tmux-plugins/tmux-sensible` - General, sensible Tmux config +- **[Tmux-continuum](https://github.com/tmux-plugins/tmux-continuum)**: `tmux-plugins/tmux-continuum` - Continuously saves and environment with automatic restore +- **[Tmux-yank](https://github.com/tmux-plugins/tmux-yank)**: `tmux-plugins/tmux-yank` - Allows access to system clipboard +- **[Tmux-prefix-highlight](https://github.com/tmux-plugins/tmux-prefix-highlight)**: `tmux-plugins/tmux-prefix-highlight` - Highlight Tmux prefix key when pressed +- **[Tmux-online-status](https://github.com/tmux-plugins/tmux-online-status)**: `tmux-plugins/tmux-online-status` - Displays network status +- **[Tmux-open](https://github.com/tmux-plugins/tmux-open)**: `tmux-plugins/tmux-open` - Bindings for quick opening selected path/ url +- **[Tmux-mem-cpu-load](https://github.com/thewtex/tmux-mem-cpu-load)**: `thewtex/tmux-mem-cpu-load` - Shows system resources + ### Vim The entry point for the Vim config is the [`vimrc`](https://github.com/Lissy93/dotfiles/blob/master/vim/vimrc), but the main editor settings are defined in [`vim/editor.vim`](https://github.com/Lissy93/dotfiles/blob/master/vim/editor.vim) diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..fc892a5 --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,30 @@ + +# Import Tmux plugins using TMP +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'tmux-plugins/tmux-yank' +set -g @plugin 'tmux-plugins/tmux-prefix-highlight' +set -g @plugin 'tmux-plugins/tmux-online-status' +set -g @plugin 'tmux-plugins/tmux-open' +set -g @plugin 'thewtex/tmux-mem-cpu-load' +set -g @plugin 'tmux-plugins/tmux-open' + +# Automatically restore session +set -g @continuum-restore 'on' + +# Configure Tmux-prefix-highlight +set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M' + +# Show current internet status +set -g status-right "Online: #{online_status} | %a %h-%d %H:%M " + +# Show system resource usage +set -g status-right "#[fg=green]#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --colors --powerline-right --interval 2)#[default]" + +# Use DDG as the default search engine (for Tmux-open) +set -g @open-S 'https://www.duckduckgo.com/' + +# Initialize Tmux plugin manager +run '~/.tmux/plugins/tpm/tpm' \ No newline at end of file