110 lines
2.8 KiB
Bash
110 lines
2.8 KiB
Bash
#set -g default-terminal 'screen-256color'
|
|
|
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
|
|
|
# enable Mouse Mode
|
|
set -g mouse off
|
|
|
|
# Enable UTF-8
|
|
#set -g utf8 on
|
|
#set -g status-utf8 on
|
|
|
|
# Use true color (for Kitty + themes)
|
|
#set -g default-terminal "tmux-256color"
|
|
#set -as terminal-overrides ',xterm-256color:RGB'
|
|
|
|
|
|
|
|
# start window numbers at 1 to match keyboard order with tmux window order
|
|
set -g base-index 1
|
|
set-window-option -g pane-base-index 1
|
|
|
|
|
|
#source-file /home/sebastian/.tmux/green.tmuxtheme
|
|
#source-file /home/sebastian/.tmux/orange.tmuxtheme
|
|
|
|
#run-shell "/home/sebastian/tools/tmux-power/tmux-power.tmux"
|
|
|
|
#set -g @tmux_power_theme 'forest'
|
|
|
|
#
|
|
# Tmux Power
|
|
#
|
|
#
|
|
|
|
set -g @tmux_power_date_icon ' ' # set it to a blank will disable the icon
|
|
set -g @tmux_power_time_icon '🕘' # emoji can be used if your terminal supports
|
|
set -g @tmux_power_user_icon 'U'
|
|
set -g @tmux_power_session_icon 'S'
|
|
set -g @tmux_power_upload_speed_icon '↑'
|
|
set -g @tmux_power_download_speed_icon '↓'
|
|
|
|
set -g @tmux_power_show_upload_speed true
|
|
set -g @tmux_power_show_download_speed true
|
|
# nice but too grey
|
|
# set -g @tmux_power_theme 'snow'
|
|
#set -g @tmux_power_theme 'moon'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
|
set -g @tmux_power_prefix_highlight_pos 'LR'
|
|
|
|
set -g @tmux_power_theme '#256C9D' # dark slate blue
|
|
|
|
|
|
# if run as "tmux attach", create a session if one does not already exist
|
|
#new-session -n $HOST
|
|
|
|
|
|
bind-key -n C-a send-prefix
|
|
|
|
#bindkey -n C-n new-window -c "#{pane_current_path}"
|
|
bind '"' split-window -c "#{pane_current_path}"
|
|
bind % split-window -h -c "#{pane_current_path}"
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
bind-key S-Left swap-window -t -1
|
|
bind-key S-Right swap-window -t +1
|
|
|
|
# Scroll through Windows with Ctrl+B followed by Ctrl-H and Ctrl-L
|
|
bind -n C-h select-window -t :-
|
|
bind -n C-l select-window -t :+
|
|
# Scroll through Windows with Ctrl+B followed by Ctrl-left-arrow and Ctrl-right-arrow
|
|
bind -n C-Left select-window -t :-
|
|
bind -n C-Right select-window -t :+
|
|
|
|
|
|
#bind -n F1 select-window -t :=11
|
|
#bind -n F2 select-window -t :=12
|
|
#bind -n F3 select-window -t :=13
|
|
#bind -n F4 select-window -t :=14
|
|
#bind -n F5 select-window -t :=15
|
|
#bind -n F6 select-window -t :=16
|
|
#bind -n F7 select-window -t :=17
|
|
#bind -n F8 select-window -t :=18
|
|
#bind -n F9 select-window -t :=19
|
|
#bind -n F10 select-window -t :=20
|
|
#bind -n F11 select-window -t :=10
|
|
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
set -g @plugin 'wfxr/tmux-power'
|
|
set -g @plugin 'wfxr/tmux-net-speed'
|
|
|
|
set-option -g @plugin "roy2220/easyjump.tmux"
|
|
|
|
#set -g @plugin "nordtheme/tmux"
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
|
|
|
|
# For Yazi image preview to work
|
|
set -g allow-passthrough on
|
|
set -ga update-environment TERM
|
|
set -ga update-environment TERM_PROGRAM
|
|
|
|
|
|
|
|
run '~/.config/tmux/plugins/tpm/tpm'
|
|
|