mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
87 lines
3.0 KiB
Plaintext
87 lines
3.0 KiB
Plaintext
# Set true color
|
|
set-option -sa terminal-overrides ",Alacritty*:Tc"
|
|
set-option -sa terminal-overrides ",alacritty*:Tc"
|
|
set-option -sa terminal-overrides ",xterm*:Tc"
|
|
|
|
set-option -g status-position top
|
|
set -g mouse on
|
|
|
|
# Disable setatus bar
|
|
set -g status on
|
|
|
|
# Set prefix
|
|
unbind C-b
|
|
set -g prefix C-s
|
|
|
|
# Shift-Alt vim keys to switch windows
|
|
bind -n M-H previous-window
|
|
bind -n M-L next-window
|
|
|
|
# Ctrls-Shift-Alt vim keys to switch windows
|
|
# bind -n C-M-H previous-session
|
|
# bind -n C-M-L next-session
|
|
|
|
# Start windows and panes at 1, not 0
|
|
set -g base-index 1
|
|
set -g pane-base-index 1
|
|
set-window-option -g pane-base-index 1
|
|
set-option -g renumber-windows on
|
|
|
|
|
|
# Open panes in current directory
|
|
bind '"' split-window -v -c "#{pane_current_path}"
|
|
bind % split-window -h -c "#{pane_current_path}"
|
|
|
|
bind-key -r i run-shell "tmux neww chtsh"
|
|
bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
|
|
|
|
set -g @plugin "tmux-plugins/tpm"
|
|
set -g @plugin "tmux-plugins/tmux-sensible"
|
|
set -g @plugin "christoomey/vim-tmux-navigator"
|
|
set -g @plugin "tmux-plugins/tmux-yank"
|
|
set -g @plugin "ofirgall/tmux-window-name"
|
|
|
|
# set vi-mode
|
|
set-window-option -g mode-keys vi
|
|
# keybindings
|
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
|
bind-key -T copy-mode-vi y send-keys -X copy-selectet-and-cancel
|
|
|
|
# TokyoNight colors for Tmux
|
|
|
|
set -g mode-style "fg=#7aa2f7,bg=#3b4261"
|
|
|
|
set -g message-style "fg=#7aa2f7,bg=#3b4261"
|
|
set -g message-command-style "fg=#7aa2f7,bg=#3b4261"
|
|
|
|
set -g pane-border-style "fg=#3b4261"
|
|
set -g pane-active-border-style "fg=#7aa2f7"
|
|
|
|
set -g status "on"
|
|
set -g status-justify "left"
|
|
|
|
set -g status-style "fg=#7aa2f7,bg=#16161e"
|
|
|
|
set -g status-left-length "100"
|
|
set -g status-right-length "100"
|
|
|
|
set -g status-left-style NONE
|
|
set -g status-right-style NONE
|
|
|
|
set -g status-left "#[fg=#15161e,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#16161e,nobold,nounderscore,noitalics]"
|
|
set -g status-right "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#16161e] #{prefix_highlight} #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %d-%m-%Y %H:%M %p #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#15161e,bg=#7aa2f7,bold] #h "
|
|
|
|
setw -g window-status-activity-style "underscore,fg=#a9b1d6,bg=#16161e"
|
|
setw -g window-status-separator ""
|
|
setw -g window-status-style "NONE,fg=#a9b1d6,bg=#16161e"
|
|
setw -g window-status-format "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[default] #I #W #F #[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]"
|
|
setw -g window-status-current-format "#[fg=#16161e,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261,bold] #I #W #F #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]"
|
|
|
|
# tmux-plugins/tmux-prefix-highlight support
|
|
set -g @prefix_highlight_output_prefix "#[fg=#e0af68]#[bg=#16161e]#[fg=#16161e]#[bg=#e0af68]"
|
|
set -g @prefix_highlight_output_suffix ""
|
|
|
|
|
|
run "~/.config/tmux/plugins/tpm/tpm"
|