linux:user:tmux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:user:tmux [2020/10/19 06:33] – stone | linux:user:tmux [2023/11/10 10:24] (current) – stone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| Irgendwie hasse ich das Ding. | Irgendwie hasse ich das Ding. | ||
| \\ | \\ | ||
| - | ===== TMUX Settings ===== | + | ===== Tmux Settings |
| < | < | ||
| + | # Scroll History | ||
| + | set -g history-limit 100000 | ||
| + | |||
| + | |||
| + | # Show Messages longer | ||
| + | set -g display-time 2000 | ||
| + | |||
| + | |||
| + | # Messages Color | ||
| + | set -g message-style bg='# | ||
| + | |||
| + | |||
| # Mouse Settings | # Mouse Settings | ||
| set -g mouse on | set -g mouse on | ||
| - | # Extra Binds | + | |
| + | # Bind for Mouse on/off | ||
| bind-key m \ | bind-key m \ | ||
| set-option -g mouse off \;\ | set-option -g mouse off \;\ | ||
| Line 17: | Line 30: | ||
| display-message ' | display-message ' | ||
| - | # reload config file (change file location to your the tmux.conf you want to use) | ||
| - | bind r source-file ~/ | ||
| + | # Bind Sync Panes (Send CMD To all) | ||
| + | bind-key k \ | ||
| + | set-option -g synchronize-panes off \;\ | ||
| + | display-message ' | ||
| + | bind-key K \ | ||
| + | set-option -g synchronize-panes on \;\ | ||
| + | display-message ' | ||
| - | # Statusbar | + | |
| + | # Bind for Config reload | ||
| + | bind r source-file ~/ | ||
| + | |||
| + | |||
| + | # Statusbar | ||
| set -g default-terminal " | set -g default-terminal " | ||
| + | set-option -g status-interval 2 | ||
| - | # Statusbar Global | ||
| - | set -g status-bg colour237 | ||
| - | set -g status-fg colour034 | ||
| - | # Statusbar - Rechts Datum und Uhrzeit | + | # Statusbar - Left |
| + | set -g status-bg '# | ||
| + | set -g status-fg '# | ||
| + | set-option -g status-left-length 15 | ||
| + | set -g status-left '# | ||
| + | set -g window-status-format '# | ||
| + | set -g window-status-current-format '# | ||
| + | |||
| + | |||
| + | # Statusbar - Right | ||
| set -g status-position bottom | set -g status-position bottom | ||
| - | set -g status-right '#[fg=colour233,bg=colour8] %d/%m/%y #[fg=colour233, | + | set-option -g status-right-length 45 |
| + | set -g status-right '# | ||
| - | set-window-option -g window-status-fg colour19 | ||
| - | set-window-option -g window-status-bg colour8 | ||
| + | # Pane Colors | ||
| + | set -g pane-border-style fg='# | ||
| + | set -g pane-active-border-style fg='# | ||
| - | # Split Border (Pane) | ||
| + | # Window counter starts at 1 not at 0 | ||
| + | set-option -g base-index 1 | ||
| + | set-window-option -g pane-base-index 1 | ||
| + | set-option -g renumber-windows on | ||
| - | # Messages | + | # Dont Jump after copy some text in vi mode |
| - | set -g message-style 'fg=colour160 bg=colour237 bold' | + | #bind-key V \ |
| + | # set -g mode-keys vi on \;\ | ||
| + | # | ||
| + | #bind-key v \ | ||
| + | # set -g mode-keys vi off \;\ | ||
| + | # | ||
| + | |||
| + | #bind-key -T copy-mode C-w send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode M-w send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode-vi C-j send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode-vi Enter send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection | ||
| + | |||
| + | |||
| + | # Clock color | ||
| + | # | ||
| + | |||
| + | # TPM | ||
| + | #set -g @plugin ' | ||
| + | #set -g @plugin ' | ||
| + | #run-shell ' | ||
| + | |||
| + | |||
| + | # Nord Theme | ||
| + | # https:// | ||
| + | # run-shell " | ||
| </ | </ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ===== Tmux Cheat Sheet ===== | ||
| + | ==== Sessions ==== | ||
| + | List Session | ||
| + | < | ||
| + | tmux ls | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Create new Session | ||
| + | < | ||
| + | tmux new -s < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Attacht Session | ||
| + | < | ||
| + | tmux a -t < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Rename Session | ||
| + | < | ||
| + | tmux rename-session -t <current name> <new name> | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Windows ==== | ||
| + | Create new Window | ||
| + | < | ||
| + | CTRL + B -> C | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Switch Window | ||
| + | < | ||
| + | CTRL + B -> 0-9 | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Close Window | ||
| + | < | ||
| + | ?? | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Rename Window | ||
| + | < | ||
| + | CTRL + B -> , | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | List Windows | ||
| + | < | ||
| + | CTRL + B -> w | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Panes ==== | ||
| + | Split Horizontal | ||
| + | < | ||
| + | CTRL + B -> " | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Split Vertical | ||
| + | < | ||
| + | CTRL + B -> % | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Delete Current Panel | ||
| + | < | ||
| + | CTRL + B -> x | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | List Panels | ||
| + | < | ||
| + | CTRL + B -> q | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Swap Random Panels | ||
| + | < | ||
| + | CTRL + B -> Space | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Swap Panel Up | ||
| + | < | ||
| + | CTRL + B -> :swap-pane -U | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | Swap Panel Down | ||
| + | < | ||
| + | CTRL + B -> :swap-pane -D | ||
| + | </ | ||
| + | \\ | ||
linux/user/tmux.1603089221.txt.gz · Last modified: by stone
