diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 92d77b5..752b28a 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -5,6 +5,7 @@ ###################################################################### # Config for Tmux multiplexer (requires version >= v2.4) # # Sets preferences, keybindings and configures plugins # +# Tmux needs to be re-sourced or killed for changes to work # # For docs and more info, see: https://github.com/lissy93/dotfiles # # # # Licensed under MIT (C) Alicia Sykes 2022 # @@ -15,8 +16,6 @@ # Basics # ###################################################################### -# Add a secondary prefix key (Ctrl+A as well as Ctrl+B) - # Set Tmux prefix keys (Ctrl+B or `) set-option -g prefix C-b set-option -g prefix2 ` @@ -67,6 +66,16 @@ bind h split-window -h set -g monitor-activity on set -g visual-activity on +###################################################################### +# Pop-Up Menus # +###################################################################### + +# Prefix + Ctrl J shows a session list popup selector with fzf +bind C-j display-popup -E "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t" + +# Show htop on Prefix + Ctrl H +bind C-h display-popup -E "htop" + ###################################################################### # Plugin Imports and Configurations #