Skip to content

Instantly share code, notes, and snippets.

@Oreok
Last active May 28, 2023 09:41
Show Gist options
  • Save Oreok/702ab2d8cab704ba649946707da7f1a8 to your computer and use it in GitHub Desktop.
Save Oreok/702ab2d8cab704ba649946707da7f1a8 to your computer and use it in GitHub Desktop.
.tmux.conf
#IMPORTANT: NERDFONT HAS TO BE INSTALLED
#set-option -g default-command "reattach-to-user-namespace -l $SHELL"
#-------------------------------------------------
# Settings
# Fix colors
set -g default-terminal "screen-256color"
# Start numbering at 1 for windows and panes
set -g base-index 1
setw -g pane-base-index 1
# utf8 is on
setw -q -g utf8 on
# Renumber windows if others are closed
set -g renumber-windows on
# Automatically rename windows based on the application within
setw -g automatic-rename on
# Use the mouse
set -g mouse on
# use vi navigation
setw -g mode-keys vi
#-------------------------------------------------
# Bindings
# Reset prefix to y
set-option -g prefix C-y
# Reload the tmux file
bind r source-file "~/.tmux.conf"
# Split window horizontal with _
unbind %
bind _ split-window -h
# Split window vertical with -
unbind '"'
bind - split-window -v
# vim bindings for resizing
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
# maximize
bind -r m resize-pane -Z
# Copy mode
bind-key -n C-S-x copy-mode
#------------------------------------------------
# List of plugins
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-prefix-highlight'
#set -g @plugin 'dracula/tmux'
set -g @plugin 'o0th/tmux-nova'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'xamut/tmux-weather'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes
#set -g @dracula-cpu-usage-label "CPU"
#set -g @dracula-cpu-display-load true
#set -g @dracula-show-fahrenheit false
#set -g @dracula-ping-server "google.com"
#set -g @dracula-ping-rate 5
set -g @yank_with_mouse on
set -g @resurrect-capture-pane-contents 'on' # allow tmux-ressurect to capture pane contents
set -g @continuum-restore 'on' # enable tmux-continuum functionality
#--------------------------------------------
set -g @nova-nerdfonts true
set -g @nova-nerdfonts-left 
set -g @nova-nerdfonts-right 
set -g @batt_icon_charge_tier8 '󰁹'
set -g @batt_icon_charge_tier7 '󰂁'
set -g @batt_icon_charge_tier6 '󰂀'
set -g @batt_icon_charge_tier5 '󰁿'
set -g @batt_icon_charge_tier4 '󰁾'
set -g @batt_icon_charge_tier3 '󰁽'
set -g @batt_icon_charge_tier2 '󰁼'
set -g @batt_icon_charge_tier1 '󰁺'
set -g @batt_icon_status_charged '󰁹'
set -g @batt_icon_status_charging '󰂄'
set -g @batt_icon_status_attached '󰂃'
set -g @batt_icon_status_unknown '󰁹'
set -g @nova-pane-active-border-style "#44475a"
set -g @nova-pane-border-style "#282a36"
set -g @nova-status-style-bg "#4c566a"
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-pane "#I#{?pane_in_mode,  #{pane_mode},}  #W"
set -g @nova-segment-mode "#{?client_prefix,Ω,ω}"
set -g @nova-segment-mode-colors "#78a2c1 #2e3440"
set -g @nova-segment-weather " #{weather} "
set -g @nova-segment-weather-colors "#78a2c1 #2e3440"
set -g @nova-segment-battery "#{battery_icon} #{battery_percentage}"
set -g @nova-segment-battery-colors "#b7457c #2e3440"
set -g @nova-segment-date "%a %d %h %H:%M"
set -g @nova-segment-date-colors "#8bbf56 #2e3440"
# set -g @nova-rows 0
set -g @nova-segments-0-left "mode"
set -g @nova-segments-0-right "battery weather date"
#-------------------------------------------
# # Initialize TMUX plugin manager (keep this line at the very bottom of
# tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment