Tmux configuration: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
</blockquote><!-- Locations --> | </blockquote><!-- Locations --> | ||
= notifications = | = Commands = | ||
<blockquote> | |||
== notifications == | |||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 26: | Line 28: | ||
</blockquote><!-- notifications --> | </blockquote><!-- notifications --> | ||
= terminal = | == terminal == | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 36: | Line 38: | ||
</blockquote><!-- terminal --> | </blockquote><!-- terminal --> | ||
= mouse = | == mouse == | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 43: | Line 45: | ||
</blockquote><!-- mouse --> | </blockquote><!-- mouse --> | ||
= statusbar = | == statusbar == | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 52: | Line 54: | ||
</blockquote><!-- statusbar --> | </blockquote><!-- statusbar --> | ||
= source-file = | == source-file == | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 59: | Line 61: | ||
</blockquote><!-- Source-file --> | </blockquote><!-- Source-file --> | ||
= keybindings = | == keybindings == | ||
<blockquote> | <blockquote> | ||
Keys are bound within tables. by default, they are bound to the <code>prefix</code> table (active following tmux-prefix activation).<br> | Keys are bound within tables. by default, they are bound to the <code>prefix</code> table (active following tmux-prefix activation).<br> | ||
Line 94: | Line 96: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- keybindings --> | </blockquote><!-- keybindings --> | ||
</blockquote><!-- Commands --> |
Revision as of 16:47, 18 September 2021
Documentation
keybindings https://man.archlinux.org/man/community/tmux/tmux.1.en#KEY_BINDINGS mouse https://man.archlinux.org/man/community/tmux/tmux.1.en#MOUSE_SUPPORT
Locations
~/.tmux.conf
config
Commands
notifications
set -g display-time 5000 # time notification messages are displayed forterminal
set -g default-terminal "screen-256color" # desired $TERM value set -g visual-bell off set -g visual-activity off set -g bell-action currentmouse
set -g mouse onstatusbar
set -g pane-base-index 1 set -g status-position top setw -g clock-mode-style 2source-file
source-file ${FILE} # import filekeybindings
Keys are bound within tables. by default, they are bound to the
prefix
table (active following tmux-prefix activation).
See KEYBINDINGS section in man page.tmux bind-key \ [-n] `# bind w/o prefix (root table)` \ [-r] `# repeatable` \ [-N ${NOTE}] \ [-T ${KEY_TABLE}] \ ${KEY} \ ${TMUX_COMMAND} ${ARGUMENTS[@]}
bind
andbind-key
can be used interchangeably.bind-key F1 set-option status off # bind key-sequence bind-key -n M-0 select-window -t 10 # bind key-sequence to root table (no prefix reqd) unbind C-b # unbind key-sequencetmux prefix
set -g prefix 'M-a' # set (additional) alternative tmux-prefixvi mode
set -g mode-keys vi set -g status-keys vi