From 3a92aa884ed6590c7aa7c682bce3b8401c5b6f9a Mon Sep 17 00:00:00 2001 From: raute Date: Thu, 30 Nov 2023 00:02:46 +0100 Subject: [PATCH] Add tmux. --- link.sh | 1 + tmux/tmux.conf | 102 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 tmux/tmux.conf diff --git a/link.sh b/link.sh index 32a992e..213814c 100755 --- a/link.sh +++ b/link.sh @@ -4,3 +4,4 @@ stow --restow --target="$HOME/.config/alacritty" alacritty stow --restow --target="$HOME/.config/fish" fish stow --restow --target="$HOME/.config/newsboat" newsboat stow --restow --target="$HOME/.config/nvim" nvim +stow --restow --target="$HOME/.config/tmux" tmux diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..5780347 --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,102 @@ +set -g default-terminal "screen-256color" +#set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # this is for the cursor shape +set -g prefix Insert +bind Insert send-prefix -2 +bind z run-shell "tks" +bind r source-file ~/.tmux.conf +bind a resize-pane -Z +set -sg escape-time 0 + +set-option -g history-limit 5000 + +set -g status-right "%Y-%m-%d %H:%M" + +# split panes using | and - +bind | split-window -h "fish -C last_cd" +bind < split-window -h "fish -C last_cd" +bind - split-window -v "fish -C last_cd" +unbind '"' +unbind % + +# pane switching +bind M-h select-pane -L +bind M-l select-pane -R +bind M-k select-pane -U +bind M-j select-pane -D +bind h select-pane -L +bind l select-pane -R +bind k select-pane -U +bind j select-pane -D + +set -g mouse on + +set-option -g set-titles on +set-option -g set-titles-string "#S - #W" + +# statusbar +set -g status-position bottom +set -g status-justify left +set -g status-left '' +set -g status-right-length 50 +set -g status-left-length 20 + +# Start flavours +# Base16 Dracula +# Scheme author: Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula) +# Template author: Tinted Theming: (https://github.com/tinted-theming) + +# default statusbar colors +set-option -g status-style "fg=#62d6e8,bg=#3a3c4e" + +# default window title colors +set-window-option -g window-status-style "fg=#62d6e8,bg=default" + +# active window title colors +set-window-option -g window-status-current-style "fg=#00f769,bg=default" + +# pane border +set-option -g pane-border-style "fg=#3a3c4e" +set-option -g pane-active-border-style "fg=#4d4f68" + +# message text +set-option -g message-style "fg=#e9e9f4,bg=#3a3c4e" + +# pane number display +set-option -g display-panes-active-colour "#ebff87" +set-option -g display-panes-colour "#00f769" + +# clock +set-window-option -g clock-mode-colour "#ebff87" + +# copy mode highligh +set-window-option -g mode-style "fg=#62d6e8,bg=#4d4f68" + +# bell +set-window-option -g window-status-bell-style "fg=#3a3c4e,bg=#ea51b2" + +###### + +set -g window-style 'bg=#282936' +set -g window-active-style 'bg=black' + +# # modes +# setw -g clock-mode-colour colour5 +# setw -g mode-style 'fg=colour1 bg=colour18 bold' + +# # panes +# set -g pane-border-style 'fg=colour19 bg=colour0' +# set -g pane-active-border-style 'bg=colour0 fg=colour9' + +set -g status-style 'bg=#3a3c4e fg=#62d6e8 dim' +# set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S ' + +setw -g window-status-style 'fg=#626483 bg=#3a3c4e' +setw -g window-status-current-style 'fg=#62d6e8 bg=#4d4f68 bold' +setw -g window-status-format ' #I#[fg=#62d6e8]:#W ' +setw -g window-status-current-format ' #I#[fg=#62d6e8]:#W ' + +# setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold' + +# # messages +# set -g message-style 'fg=colour232 bg=colour16 bold' +# End flavours