====== Tmux ====== Irgendwie hasse ich das Ding. \\ ===== Tmux Settings & Config ===== # Scroll History set -g history-limit 100000 # Show Messages longer set -g display-time 2000 # Messages Color set -g message-style bg='#ffffff',fg='#1f618d' # Mouse Settings set -g mouse on # Bind for Mouse on/off bind-key m \ set-option -g mouse off \;\ display-message 'Mouse: OFF' bind-key M \ set-option -g mouse on \;\ display-message 'Mouse: ON' # Bind Sync Panes (Send CMD To all) bind-key k \ set-option -g synchronize-panes off \;\ display-message 'Sync-Panes: OFF' bind-key K \ set-option -g synchronize-panes on \;\ display-message 'Sync-Panes: ON' # Bind for Config reload bind r source-file ~/.tmux.conf \; display-message 'Reload Config..' # Statusbar Globals set -g default-terminal "screen-256color" set-option -g status-interval 2 # Statusbar - Left set -g status-bg '#303030' set -g status-fg '#65c7fa' set-option -g status-left-length 15 set -g status-left '#[bg=#1f618d]#[fg=#ffffff]#(echo "S:")#S #[bg=#303030]#[fg=#65c7fa] ' set -g window-status-format '#[bg=#303030]#[fg=#257ca9]#{window_index}#(echo ":")#{window_name}#{window_flags}#{window_zoomed_flag} #[bg=#ffffff]#[fg=#1f618d]#(echo " <> ")' set -g window-status-current-format '#[bold]#[bg=#303030]#[fg=#85d4fc]#{window_index}#(echo ":")#{window_name}#{window_flags} #[bg=#ffffff]#[fg=#1f618d]#(echo " <> ")' # Statusbar - Right set -g status-position bottom set-option -g status-right-length 45 set -g status-right '#[bg=#1f618d]#[fg=#ffffff] #(hostname) #[bg=#ffffff]#[fg=#1f618d] <> #[bg=#1f618d]#[fg=#ffffff] %d/%m/%Y #[bg=#ffffff]#[fg=#1f618d] <> #[bg=#1f618d]#[fg=#ffffff] %H:%M:%S ' # Pane Colors set -g pane-border-style fg='#7d8599' set -g pane-active-border-style fg='#7ac1f0' # 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 # Dont Jump after copy some text in vi mode #bind-key V \ # set -g mode-keys vi on \;\ # display-message 'VI Mode on' #bind-key v \ # set -g mode-keys vi off \;\ # display-message 'VI Mode 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 #set-window-option -g clock-mode-colour fg='#1f618d' # TPM #set -g @plugin 'tmux-plugins/tpm' #set -g @plugin 'tmux-plugins/tmux-sensible' #run-shell '~/.tmux/plugins/tpm/tpm' # Nord Theme # https://github.com/arcticicestudio/nord-tmux # run-shell "~/.tmux/themes/nord-tmux/nord.tmux \\ ===== 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 \\ ==== 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 \\