From 15afc3f02585cb2d3ba10e37ac7421860fc316c9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 13 May 2022 18:59:40 +0900 Subject: tmux: move .tmux.conf to .config/tmux/tmux.conf --- .config/tmux/tmux.conf | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++ .tmux.conf | 89 -------------------------------------------------- setup.sh | 2 +- 3 files changed, 90 insertions(+), 90 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..1cff1c9 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,89 @@ +################################################################### +# __ __ _ __ # +# | \/ |_ _ | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _| # +# | |\/| | | | | | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_ # +# | | | | |_| | | |_| | | | | | |_| |> < | (_| (_) | | | | _| # +# |_| |_|\__, | (_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_| # +# |___/ # +################################################################### + +# OPTIONS {{{1 + +# BASICS {{{2 +set-option -g base-index 1 +set-option -g pane-base-index 1 +set-option -g renumber-windows on +set-option -g default-shell /usr/local/bin/zsh +set-option -g history-limit 10000 +set-option -g focus-events on +set-option -g escape-time 10 + +# TERMINAL FEATURES {{{2 +set-option -g default-terminal tmux-256color +set-option -ga terminal-overrides ',tmux-256color:Tc' +set-option -ga terminal-overrides ',alacritty:RGB' + +# APPEARANCE {{{2 +set-option -g status-justify left +set-option -g status-style 'fg=#b1b1c8 bg=#101020' +set-option -g status-left '#{?#{==:#{pane_mode},copy-mode},#[bg=#deab52] COPY ,#[bg=#6e6eff] TMUX }' +set-option -g status-left-length 20 +set-option -g status-left-style 'fg=#101020 bold' +set-option -g status-position top +set-option -g status-right ' %F (%a) %R ' +set-option -g status-right-length 25 +set-option -g status-right-style 'fg=#b1b1c8 bg=#353535' +set-option -g window-status-separator '' +set-option -g window-status-format ' #W ' +set-option -g window-status-style 'fg=#8686bf bg=#101020' +set-option -g window-status-current-format ' #W ' +set-option -g window-status-current-style 'fg=#b1b1c8 bg=#353535' + +set-option -g pane-border-lines single + + +# KEY BINDINGS {{{1 + +unbind-key -a -T root +unbind-key -a -T prefix + +set-option -g status-keys emacs +set-option -g prefix C-t + +bind-key : command-prompt +bind-key ';' command-prompt +bind-key ? list-keys + +# Window +bind-key t new-window +bind-key n next-window +bind-key p previous-window +bind-key N move-window -a +bind-key P move-window -b + +# Pane +bind-key w switch-client -T tw +bind-key -T tw h split-window -h -b +bind-key -T tw j split-window -v +bind-key -T tw k split-window -v -b +bind-key -T tw l split-window -h +bind-key h select-pane -L +bind-key j select-pane -D +bind-key k select-pane -U +bind-key l select-pane -R +bind-key g display-panes -d 0 + +# Layout +bind-key = select-layout tiled +bind-key 4 split-window \; \ + split-window \; \ + split-window \; \ + select-layout tiled + +set-option -g mode-keys vi +bind-key V copy-mode +bind-key -T copy-mode-vi V send-keys -X select-line +bind-key -T copy-mode-vi Escape send-keys -X clear-selection +bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" + +bind-key s set-option synchronize-panes diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index 1cff1c9..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,89 +0,0 @@ -################################################################### -# __ __ _ __ # -# | \/ |_ _ | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _| # -# | |\/| | | | | | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_ # -# | | | | |_| | | |_| | | | | | |_| |> < | (_| (_) | | | | _| # -# |_| |_|\__, | (_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_| # -# |___/ # -################################################################### - -# OPTIONS {{{1 - -# BASICS {{{2 -set-option -g base-index 1 -set-option -g pane-base-index 1 -set-option -g renumber-windows on -set-option -g default-shell /usr/local/bin/zsh -set-option -g history-limit 10000 -set-option -g focus-events on -set-option -g escape-time 10 - -# TERMINAL FEATURES {{{2 -set-option -g default-terminal tmux-256color -set-option -ga terminal-overrides ',tmux-256color:Tc' -set-option -ga terminal-overrides ',alacritty:RGB' - -# APPEARANCE {{{2 -set-option -g status-justify left -set-option -g status-style 'fg=#b1b1c8 bg=#101020' -set-option -g status-left '#{?#{==:#{pane_mode},copy-mode},#[bg=#deab52] COPY ,#[bg=#6e6eff] TMUX }' -set-option -g status-left-length 20 -set-option -g status-left-style 'fg=#101020 bold' -set-option -g status-position top -set-option -g status-right ' %F (%a) %R ' -set-option -g status-right-length 25 -set-option -g status-right-style 'fg=#b1b1c8 bg=#353535' -set-option -g window-status-separator '' -set-option -g window-status-format ' #W ' -set-option -g window-status-style 'fg=#8686bf bg=#101020' -set-option -g window-status-current-format ' #W ' -set-option -g window-status-current-style 'fg=#b1b1c8 bg=#353535' - -set-option -g pane-border-lines single - - -# KEY BINDINGS {{{1 - -unbind-key -a -T root -unbind-key -a -T prefix - -set-option -g status-keys emacs -set-option -g prefix C-t - -bind-key : command-prompt -bind-key ';' command-prompt -bind-key ? list-keys - -# Window -bind-key t new-window -bind-key n next-window -bind-key p previous-window -bind-key N move-window -a -bind-key P move-window -b - -# Pane -bind-key w switch-client -T tw -bind-key -T tw h split-window -h -b -bind-key -T tw j split-window -v -bind-key -T tw k split-window -v -b -bind-key -T tw l split-window -h -bind-key h select-pane -L -bind-key j select-pane -D -bind-key k select-pane -U -bind-key l select-pane -R -bind-key g display-panes -d 0 - -# Layout -bind-key = select-layout tiled -bind-key 4 split-window \; \ - split-window \; \ - split-window \; \ - select-layout tiled - -set-option -g mode-keys vi -bind-key V copy-mode -bind-key -T copy-mode-vi V send-keys -X select-line -bind-key -T copy-mode-vi Escape send-keys -X clear-selection -bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" - -bind-key s set-option synchronize-panes diff --git a/setup.sh b/setup.sh index 6921b9d..7c44391 100755 --- a/setup.sh +++ b/setup.sh @@ -4,7 +4,6 @@ # Make symlinks to dot files. {{{2 for name in \ - .tmux.conf \ .vimrc \ .zshenv \ .zshrc \ @@ -30,6 +29,7 @@ for name in \ git \ newsboat \ nvim \ + tmux \ ; \ do if [ ! -L ~/.config/"$name" ]; then -- cgit v1.2.3-70-g09d2