Skip to content

Instantly share code, notes, and snippets.

@he9lin
Last active August 19, 2023 21:00
Show Gist options
  • Save he9lin/5423583 to your computer and use it in GitHub Desktop.
Save he9lin/5423583 to your computer and use it in GitHub Desktop.
My tmux conf file
# After reloading the configuration file, we can send [command] to an application
# running within tmux simply by pressing [command] twice.
set -g prefix C-n
bind C-n send-prefix
set-option -g default-shell /bin/zsh
# Splitting panes
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Reszing panes (-r means repeatable)
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
set -g status-left-length 40
set -sg escape-time 10
# Renumber windows automatically
set-option -g renumber-windows on
# Set the starting window number, was 0
set -g base-index 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
set-option -g default-terminal "screen-256color"
set-option -sa terminal-overrides ',xterm-256color:RGB'
# Scrolling through output with copy mode
setw -g mode-keys vi
set -g mouse on
# Nord config
# set -g @nord_tmux_no_patched_font 1
# Dracula config
# set -g @dracula-network-colors "pink dark_gray"
# set -g @dracula-show-left-icon "⏻"
# set -g @dracula-show-powerline true
# set -g @dracula-show-left-sep "▅▃" # 
# set -g @dracula-show-right-sep "▃▅" # 
# set -g @dracula-plugins "cpu-usage ram-usage time"
# Tmux Plugin Manager
set -g @plugin 'tmux-plugins/tpm'
# List of plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'ofirgall/tmux-window-name'
# Themes
# set -g @plugin 'jimeh/tmux-themepack'
# set -g @themepack 'basic'
# set -g @plugin 'dracula/tmux'
# set -g @plugin "arcticicestudio/nord-tmux"
# set -g @plugin 'janoamaral/tokyo-night-tmux'
# set -g @plugin 'egel/tmux-gruvbox'
# set -g @tmux-gruvbox 'dark' # or 'light'
set -g @plugin 'o0th/tmux-nova'
set -g @nova-nerdfonts true
set -g @nova-nerdfonts-left 
set -g @nova-nerdfonts-right 
set -g @nova-segment-mode "#{?client_prefix,Ω,ω}"
set -g @nova-segment-mode-colors "#50fa7b #282a36"
set -g @nova-segment-whoami "#(whoami)@#h"
set -g @nova-segment-whoami-colors "#50fa7b #282a36"
set -g @nova-pane "#I#{?pane_in_mode,  #{pane_mode},}  #W"
set -g @nova-rows 0
set -g @nova-segments-0-left "mode"
set -g @nova-segments-0-right "whoami"
set -g @resurrect-save 'S'
set -g @resurrect-restore 'R'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
@he9lin
Copy link
Author

he9lin commented Apr 24, 2023

set -g @plugin "janoamaral/tokyo-night-tmux"

@he9lin
Copy link
Author

he9lin commented Aug 19, 2023

set -g @plugin 'o0th/tmux-nova'
set -g @nova-nerdfonts true
set -g @nova-nerdfonts-left 
set -g @nova-nerdfonts-right 

set -g @nova-pane-active-border-style "#44475a"
set -g @nova-pane-border-style "#282a36"
set -g @nova-pane-border-style "#333333"
set -g @nova-status-style-bg "#1e1e1e"
set -g @nova-status-style-fg "#d8dee9"
set -g @nova-status-style-active-bg "#89c0d0"
set -g @nova-status-style-active-fg "#2e3540"
set -g @nova-status-style-double-bg "#2d3540"

set -g @nova-segment-mode "#{?client_prefix,Ω,ω}"
set -g @nova-segment-mode-colors "#569CD6 #282a36"

set -g @nova-segment-whoami "#(whoami)@#h"
set -g @nova-segment-whoami-colors "#569CD6 #282a36"

set -g @nova-pane "#I#{?pane_in_mode,  #{pane_mode},}  #W"

set -g @nova-rows 0
set -g @nova-segments-0-left "mode"
set -g @nova-segments-0-right "whoami"

@he9lin
Copy link
Author

he9lin commented Aug 19, 2023

set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_status_modules "application session host date_time"
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"

set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"

set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"

set -g @catppuccin_status_modules "directory user host session"
set -g @catppuccin_status_left_separator  " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"

set -g @catppuccin_directory_text "#{pane_current_path}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment