From a64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 29 Feb 2024 20:35:21 +0300 Subject: tmux: clean up home --- .config/tmux/tmux.conf | 94 +++++++++++++++++++++++++++++++++++++++++++++++++ .tmux.conf | 95 -------------------------------------------------- 2 files changed, 94 insertions(+), 95 deletions(-) create mode 100644 .config/tmux/tmux.conf delete mode 100644 .tmux.conf diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..84638e0 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,94 @@ +# Make shift+arrows, ctrl+arrows etc work in Vim. +set -g xterm-keys on + +# See if this fixes slow ESC issues. +# http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior +set -s escape-time 0 + +# Start numbering at 1 +set -g base-index 1 +set -g pane-base-index 1 + +# Set status bar +set -g status-position bottom +set -g status-justify left + +set -g status-style fg=white,bg=black,bold + +set -g status-left "#S " +set -g status-right '#[fg=white,bg=black,bold] %d/%m #[fg=white,bg=black,bold] %H:%M @#H' + +# higlight the active window in the status bar +set-window-option -g window-status-current-style bg=black,fg=white + +setw -g window-status-current-style fg=red,bg=white,bold +setw -g window-status-current-format ' #I#[fg=red]:#[fg=black]#W#[fg=black]#F ' + +setw -g window-status-style fg=white,bg=black,dim +setw -g window-status-format ' #I#[fg=cyan]:#[fg=white]#W#[fg=white]#F ' + +# Don't prompt to kill panes/windows. +bind-key x kill-pane +bind-key & kill-window + +# Cycle panes. +bind b select-pane -t :.+ +bind C-b select-pane -t :.+ + +# More intuitive split-window mappings. +bind "'" split-window -h -c "#{pane_current_path}" +bind - split-window -v -c "#{pane_current_path}" + +# Maximize pane, e.g. for copying. +bind-key z resize-pane -Z + +# Use vim keybindings in copy mode +setw -g mode-keys vi + +set -g set-titles on +set -g mouse on + +# C-b is not acceptable -- Vim uses it +set-option -g prefix C-space +bind-key C-space last-window + +# vim like navigation +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# The panes + +#set -g pane-border-bg colour235 +#set -g pane-border-fg colour238 +#set -g pane-active-border-bg colour236 +#set -g pane-active-border-fg colour51 + +# panes +#set -g pane-border-fg black +#set -g pane-active-border-fg brightred + +# Activity monitoring +setw -g monitor-activity on +set -g visual-activity on + +# Example of using a shell command in the status line +#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" + +set -g default-terminal "tmux-256color" +set-option -ga terminal-overrides ",xterm-kitty:Tc" + +############# +# plugins # +############# + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-yank' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'laktak/extrakto' + +set -g @sidebar-tree-command 'tree -C' + +run -b '~/.local/share/tmux/plugins/tpm/tpm' diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index e0ff871..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,95 +0,0 @@ -# Make shift+arrows, ctrl+arrows etc work in Vim. -set -g xterm-keys on - -# See if this fixes slow ESC issues. -# http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior -set -s escape-time 0 - -# Start numbering at 1 -set -g base-index 1 -set -g pane-base-index 1 - -# Set status bar -set -g status-position bottom -set -g status-justify left - -set -g status-style fg=white,bg=black,bold - -set -g status-left "#S " -set -g status-right '#[fg=white,bg=black,bold] %d/%m #[fg=white,bg=black,bold] %H:%M @#H' - -# higlight the active window in the status bar -set-window-option -g window-status-current-style bg=black,fg=white - -setw -g window-status-current-style fg=red,bg=white,bold -setw -g window-status-current-format ' #I#[fg=red]:#[fg=black]#W#[fg=black]#F ' - -setw -g window-status-style fg=white,bg=black,dim -setw -g window-status-format ' #I#[fg=cyan]:#[fg=white]#W#[fg=white]#F ' - -# Don't prompt to kill panes/windows. -bind-key x kill-pane -bind-key & kill-window - -# Cycle panes. -bind b select-pane -t :.+ -bind C-b select-pane -t :.+ - -# More intuitive split-window mappings. -bind "'" split-window -h -c "#{pane_current_path}" -bind - split-window -v -c "#{pane_current_path}" - -# Maximize pane, e.g. for copying. -bind-key z resize-pane -Z - -# Use vim keybindings in copy mode -setw -g mode-keys vi - -set -g set-titles on -set -g mouse on - -# C-b is not acceptable -- Vim uses it -set-option -g prefix C-space -bind-key C-space last-window - -# vim like navigation -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R - -# The panes - -#set -g pane-border-bg colour235 -#set -g pane-border-fg colour238 -#set -g pane-active-border-bg colour236 -#set -g pane-active-border-fg colour51 - -# panes -#set -g pane-border-fg black -#set -g pane-active-border-fg brightred - -# Activity monitoring -setw -g monitor-activity on -set -g visual-activity on - -# Example of using a shell command in the status line -#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" - -set -g default-terminal "tmux-256color" -set-option -ga terminal-overrides ",xterm-kitty:Tc" - -############# -# plugins # -############# - -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-yank' -set -g @plugin 'tmux-plugins/tmux-resurrect' -set -g @plugin 'tmux-plugins/tmux-continuum' -set -g @plugin 'laktak/extrakto' - -set -g @sidebar-tree-command 'tree -C' - - -run -b '~/.tmux/plugins/tpm/tpm' -- cgit v1.2.3-70-g09d2