dots/.config/tmux/tmux.conf

89 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

2025-01-10 17:29:16 +03:00
#########################
### TMUX CLI COMMANDS ###
#########################
# Reload tmux configuration tmux source ~/.config/tmux/tmux.conf
# Attach to an existing session tmux attach -t session_name
# Kill all tmux processes pkill -f tmux
# Install specified plugins via TPM prefix + I
# Run custom shell script at startup run-shell "~/your/command.sh"
# (in tmux.conf)
########################
### GENERAL SETTINGS ###
########################
set -g base-index 1 # Start window numbering at 1
set -g pane-base-index 1 # Start pane numbering at 1
set -g aggressive-resize on # Automatically resize panes on window size change
set -g history-limit 10000 # Keep 10,000 lines in scrollback buffer
set -g set-titles on # Enable automatic title updates
set -g mouse on # Enable mouse support
set -g mode-style "fg=black,bg=blue" # Customize text selection colors in copy mode
#set -g status-position top # Place status bar at top
set -g default-shell /usr/bin/zsh # Set default shell
set -g default-command /usr/bin/zsh # Set default shell command
set-environment -g LC_CTYPE "ru_RU.UTF-8" # Set environment encoding for Russian
####################
### PLUGINS LIST ###
####################
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dracula/tmux'
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, tmux-ram-usage, network, network-bandwidth, network-ping, ssh-session, attached-clients, network-vpn, weather, time, mpc, spotify-tui, kubernetes-context, synchronize-panes
set -g @dracula-plugins "cpu-usage ram-usage time"
# available colors: white, gray, dark_gray, light_purple, dark_purple, cyan, green, orange, red, pink, yellow
# set -g @dracula-[plugin-name]-colors "[background] [foreground]"
# set -g @dracula-cpu-usage-colors "dark_purple white"
set -g @dracula-cpu-usage-colors "green dark_gray"
set -g @dracula-show-timezone false
set -g @dracula-day-month true
set -g @dracula-military-time true
# set -g @dracula-time-format "%F %R"
set -g @dracula-time-format "%H:%M, %d %b %Y г."
set -g @dracula-show-powerline true
# for left
set -g @dracula-show-left-sep 
# for right symbol (can set any symbol you like as separator)
set -g @dracula-show-right-sep 
set -g @dracula-show-flags true
# it can accept `hostname` (full hostname), `session`, `shortname` (short name), `smiley`, `window`, or any character.
set -g @dracula-show-left-icon session
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
######################
### PLUGINS CONFIG ###
######################
# Ensure TPM plugin is installed
if "test ! -d ~/.config/tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'"
# Autoinstall other plugins on new machine
run '~/.config/tmux/plugins/tpm/tpm'
run '~/.config/tmux/plugins/tpm/bin/install_plugins'
# Initialize TPM (keep this line at very bottom of tmux.conf)
run '~/.config/tmux/plugins/tpm/tpm'