dotfiles/.tmux.conf
2026-07-03 15:00:29 +02:00

89 lines
2.7 KiB
Bash

# IMPORTANT:
# - To apply plugins, while on tmux press: <prefix>, I
# - Install Nerd Fonts
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Nova theme
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-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-segment-mode "#{?client_prefix,Ω,ω}"
set -g @nova-segment-mode-colors "#78a2c1 #2e3440"
# set -g @nova-segment-whoami '#(gitmux "#{pane_current_path}") %H:%M'
# set -g @nova-segment-whoami-colors "#2d3540 #2e3440"
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"
# Solarized theme
# set -g @plugin 'seebi/tmux-colors-solarized'
# set -g @colors-solarized 'dark'
# Tokyo Night theme
# set -g @plugin "janoamaral/tokyo-night-tmux"
# set -g @tokyo-night-tmux_theme moon # night (default) | storm | moon | day
# set -g @tokyo-night-tmux_transparent 1 # transparent background
# set -g @tokyo-night-tmux_show_git 1 # local git status
# set -g @tokyo-night-tmux_show_wbg 1 # GitHub / GitLab stats
# set -g @tokyo-night-tmux_show_netspeed 1 # network speed
# set -g @tokyo-night-tmux_show_battery_widget 1 # battery level
# set -g @tokyo-night-tmux_show_music 1 # now playing
# set -g @tokyo-night-tmux_show_path 1 # current path
# set -g @tokyo-night-tmux_show_hostname 1 # machine hostname
# Terminal type configuration
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# Bindings
bind M-c a -c "%{pane_current_path}"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# split panes using | and -
bind \\ split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using Ctrl + vim navigation
bind -n C-h select-pane -L
bind -n C-l select-pane -R
bind -n C-j select-pane -U
bind -n C-k select-pane -D
# switch windows using Ctrl + Tab
bind -n C-Tab next-window
bind q killp
# Enable mouse
set -g mouse on
set-option -g status-position top
# set -g status-right '[#(gitmux "#{pane_current_path}")] %m.%d.%y %H:%M'
set -g status-right '%m.%d.%Y %H:%M '
set-option -g allow-rename off