tmux configuration redesign
This commit is contained in:
+38
-79
@@ -71,42 +71,49 @@ tmux_conf_24b_colour=auto
|
||||
# - tmux_conf_theme_synchronized
|
||||
tmux_conf_theme=enabled
|
||||
|
||||
# Carbonfox Color Palette
|
||||
color_bg="#161616"
|
||||
color_fg="#f2f4f8"
|
||||
color_black="#282828"
|
||||
color_gray="#353535"
|
||||
color_light_gray="#484848"
|
||||
color_red="#ee5396"
|
||||
color_green="#25be6a"
|
||||
color_teal="#3ddbd9"
|
||||
color_blue="#78a9ff"
|
||||
color_purple="#be95ff"
|
||||
color_cyan="#33b1ff"
|
||||
color_white="#dfdfe0"
|
||||
# Classic Monokai Color Palette
|
||||
color_bg="#272822"
|
||||
color_fg="#f8f8f2"
|
||||
color_black="#1e1f1c"
|
||||
color_gray="#3e3d32"
|
||||
color_light_gray="#75715e"
|
||||
color_red="#f92672"
|
||||
color_green="#a6e22e" # Monokai Green (Session & Normal)
|
||||
color_teal="#a6e22e" # Monokai Green
|
||||
color_blue="#66d9ef" # Monokai Cyan/Blue
|
||||
color_purple="#ae81ff" # Monokai Purple (Host & Visual)
|
||||
color_cyan="#66d9ef" # Monokai Cyan (Active Window)
|
||||
color_yellow="#e6db74" # Monokai Yellow (Date/Time)
|
||||
color_white="#f8f8f2"
|
||||
|
||||
color_accent="$color_blue"
|
||||
color_accent="$color_cyan" # Active window is Monokai Cyan
|
||||
color_primary="default"
|
||||
color_secondary="$color_gray"
|
||||
color_fg_primary="$color_fg"
|
||||
color_fg_secondary="$color_white"
|
||||
|
||||
# Curve variables bound to palette colors
|
||||
color_blue_curve="$color_purple"
|
||||
color_cyan_curve="$color_yellow"
|
||||
color_purple_curve="$color_purple"
|
||||
|
||||
window_status_current_bg="default"
|
||||
window_status_current_fg="$color_accent"
|
||||
|
||||
theme_mode_bg="$color_accent"
|
||||
theme_mode_fg="$color_bg"
|
||||
|
||||
tmux_conf_theme_window_fg="$color_fg_primary"
|
||||
tmux_conf_theme_window_fg="#a5afc2"
|
||||
# window style
|
||||
tmux_conf_theme_window_bg="default"
|
||||
|
||||
# highlight focused pane, possible values are:
|
||||
# - true
|
||||
# - false (default)
|
||||
tmux_conf_theme_highlight_focused_pane=false
|
||||
tmux_conf_theme_highlight_focused_pane=true
|
||||
|
||||
# focused pane colours:
|
||||
tmux_conf_theme_focused_pane_fg="#f2f4f8"
|
||||
tmux_conf_theme_focused_pane_bg="default"
|
||||
|
||||
# pane border style, possible values are:
|
||||
@@ -174,7 +181,7 @@ tmux_conf_theme_window_status_attr="none"
|
||||
# tmux_conf_theme_window_status_format="#I #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}"
|
||||
#tmux_conf_theme_window_status_format="#{circled_window_index} #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}"
|
||||
# tmux_conf_theme_window_status_format=" #I: #(despell -e #W) #W #{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
tmux_conf_theme_window_status_format="#[fg=$color_gray,bg=default]#[fg=$color_fg,bg=$color_gray]#I: #(bash /Users/jsarthak/dotfiles/tmux/tmux-window-name.sh '#W' '#{pane_current_path}')#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}#[fg=$color_gray,bg=default]"
|
||||
tmux_conf_theme_window_status_format="#[fg=$color_light_gray,bg=default]#I: #(bash /Users/jsarthak/dotfiles/tmux/tmux-window-name.sh '#W' '#{pane_current_path}')#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
|
||||
# window current status style
|
||||
# - built-in variables are:
|
||||
@@ -189,7 +196,7 @@ tmux_conf_theme_window_status_format="#[fg=$color_gray,bg=default]#[fg=$color
|
||||
# tmux_conf_theme_window_status_current_format="#I #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}"
|
||||
#tmux_conf_theme_window_status_current_format="#{circled_window_index} #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}"
|
||||
# tmux_conf_theme_window_status_current_format="#I: #(despell -e #W) #[fg=$tmux_conf_theme_window_status_current_fg]#W*#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
tmux_conf_theme_window_status_current_format="#[fg=$color_accent,bg=default]#[fg=$color_bg,bg=$color_accent,bold]#I: #(bash /Users/jsarthak/dotfiles/tmux/tmux-window-name.sh '#W' '#{pane_current_path}')#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}#[fg=$color_accent,bg=default]"
|
||||
tmux_conf_theme_window_status_current_format="#[fg=$color_accent,bg=default,bold]#I: #(bash /Users/jsarthak/dotfiles/tmux/tmux-window-name.sh '#W' '#{pane_current_path}')#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
|
||||
|
||||
tmux_conf_theme_window_status_current_fg="$window_status_current_fg"
|
||||
tmux_conf_theme_window_status_current_bg="$window_status_current_bg"
|
||||
@@ -249,18 +256,19 @@ tmux_conf_theme_right_separator_sub=""
|
||||
# - #{username}
|
||||
# - #{username_ssh}
|
||||
|
||||
tmux_conf_theme_status_left=" ❐ #S #[fg=$color_accent,bg=default,none]"
|
||||
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized} |#[fg=default,bg=default] #[fg=$color_secondary,bg=default,none]#[fg=$color_fg,bg=$color_secondary,none] #{?uptime_d,#{uptime_d}d,}#{?uptime_h,#{uptime_h}h,}#{?uptime_m,#{uptime_m}m,}#[fg=$color_secondary,bg=default,none] |#[fg=default,bg=default] #[fg=$color_purple,bg=default,none]#[fg=$color_bg,bg=$color_purple,bold] #{username}#{root}@#{hostname}#[fg=$color_purple,bg=default,none] "
|
||||
tmux_conf_theme_status_left=" #[fg=$color_teal,bg=default,bold]❐ #S #[fg=$color_gray,bg=default,none]│"
|
||||
|
||||
# status left style
|
||||
tmux_conf_theme_status_left_fg="$color_bg"
|
||||
tmux_conf_theme_status_left_bg="$color_accent"
|
||||
tmux_conf_theme_status_left_attr="bold"
|
||||
tmux_conf_theme_status_left_fg="default"
|
||||
tmux_conf_theme_status_left_bg="default"
|
||||
tmux_conf_theme_status_left_attr="none"
|
||||
|
||||
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized}#{?pane_in_mode,#{?selection_active,#[fg=$color_blue,bg=default,bold] VISUAL,#[fg=$color_green,bg=default,bold] NORMAL},} | #[fg=$color_fg,bg=default,none] #{?uptime_d,#{uptime_d}d,}#{?uptime_h,#{uptime_h}h,}#{?uptime_m,#{uptime_m}m,} #[fg=$color_gray]│ #[fg=$color_cyan,bg=default,bold] %d %b %H:%M #[fg=$color_gray]│ #[fg=$color_purple,bg=default,bold] #{username}#{root}@#{hostname}"
|
||||
|
||||
# status right style
|
||||
tmux_conf_theme_status_right_fg="$color_red,$color_fg,$color_bg"
|
||||
tmux_conf_theme_status_right_bg="default,$color_secondary,$color_purple"
|
||||
tmux_conf_theme_status_right_attr="bold,none,bold"
|
||||
tmux_conf_theme_status_right_fg="$color_red,$color_fg"
|
||||
tmux_conf_theme_status_right_bg="default,default"
|
||||
tmux_conf_theme_status_right_attr="bold,none"
|
||||
|
||||
# pairing indicator
|
||||
tmux_conf_theme_pairing="⚇" # U+2687
|
||||
@@ -352,38 +360,11 @@ tmux_conf_urlscan_options="--compact --dedupe"
|
||||
|
||||
# -- user customizations -------------------------------------------------------
|
||||
|
||||
# this is the place to override or undo settings
|
||||
set-option -g detach-on-destroy off
|
||||
# Source modular configurations
|
||||
source-file "/Users/jsarthak/dotfiles/tmux/config/settings.conf"
|
||||
source-file "/Users/jsarthak/dotfiles/tmux/config/keybindings.conf"
|
||||
|
||||
# increase history size
|
||||
set -g history-limit 99999999
|
||||
set status-bg default
|
||||
|
||||
# start with mouse mode enabled
|
||||
set -g mouse on
|
||||
|
||||
# Allow tmux to understand and pass through color queries
|
||||
set -as terminal-overrides ",xterm*:Tc"
|
||||
set -as terminal-overrides ",xterm*:RGB"
|
||||
|
||||
# force Vi mode
|
||||
# really you should export VISUAL or EDITOR environment variable, see manual
|
||||
set -g status-keys vi
|
||||
set -g mode-keys vi
|
||||
|
||||
# replace C-b by C-a instead of using both prefixes
|
||||
set -gu prefix2
|
||||
unbind C-a
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
unbind -T copy-mode-vi MouseDragEnd1Pane
|
||||
# if you don't want Oh my tmux! to alter a binding, use #!important
|
||||
# bind c new-window -c '#{pane_current_path}' #!important
|
||||
|
||||
# move status line to top
|
||||
set -g status-position bottom
|
||||
setw -g window-status-separator " #[fg=#484848]• " #!important
|
||||
|
||||
# -- tpm -----------------------------------------------------------------------
|
||||
|
||||
@@ -427,28 +408,6 @@ set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
#set -g @continuum-restore 'on'
|
||||
set -g @plugin 'tmux-plugins/tmux-logging'
|
||||
|
||||
# switch windows alt+number
|
||||
bind-key -n M-1 select-window -t 1
|
||||
bind-key -n M-2 select-window -t 2
|
||||
bind-key -n M-3 select-window -t 3
|
||||
bind-key -n M-4 select-window -t 4
|
||||
bind-key -n M-5 select-window -t 5
|
||||
bind-key -n M-6 select-window -t 6
|
||||
bind-key -n M-7 select-window -t 7
|
||||
bind-key -n M-8 select-window -t 8
|
||||
bind-key -n M-9 select-window -t 9
|
||||
# Toggle popup window with Ctrl+
|
||||
bind-key -n -N 'Toggle popup window' M-p if-shell -F '#{==:#{session_name},popup}' {
|
||||
detach-client
|
||||
} {
|
||||
display-popup -d "#{pane_current_path}" -xC -yC -w 70% -h 65% -E 'tmux attach-session -t popup || tmux new-session -s popup'
|
||||
}
|
||||
bind-key -n M-f "tmux-sessionizer\n"
|
||||
|
||||
# Set alignment
|
||||
set -g status-justify left
|
||||
# set -g status-style fg=default,bg=default
|
||||
# set mode-style "fg=black,bg=default"
|
||||
# -- custom variables ----------------------------------------------------------
|
||||
|
||||
# to define a custom #{foo} variable, define a POSIX shell function between the
|
||||
|
||||
Reference in New Issue
Block a user