feat tmux: oh-my-tmux 調整

This commit is contained in:
Yuan Chiu 2025-06-01 12:28:17 +08:00
parent a57bf598b7
commit 6f9cde3e09
Signed by: yuan
GPG Key ID: 50FBE4156404B98D

View File

@ -14,7 +14,7 @@
# /!\ this disables some of Oh my tmux! bindings described in README.md # /!\ this disables some of Oh my tmux! bindings described in README.md
# - true # - true
# - false (default) # - false (default)
tmux_conf_preserve_stock_bindings=false tmux_conf_preserve_stock_bindings=true
# -- session creation ---------------------------------------------------------- # -- session creation ----------------------------------------------------------
@ -105,23 +105,23 @@ tmux_conf_theme_colour_16="#d70000" # red
tmux_conf_theme_colour_17="#e4e4e4" # white tmux_conf_theme_colour_17="#e4e4e4" # white
# default theme (ansi) # default theme (ansi)
#tmux_conf_theme_colour_1="colour0" # tmux_conf_theme_colour_1="colour0"
#tmux_conf_theme_colour_2="colour8" # tmux_conf_theme_colour_2="colour8"
#tmux_conf_theme_colour_3="colour8" # tmux_conf_theme_colour_3="colour8"
#tmux_conf_theme_colour_4="colour14" # tmux_conf_theme_colour_4="colour14"
#tmux_conf_theme_colour_5="colour11" # tmux_conf_theme_colour_5="colour11"
#tmux_conf_theme_colour_6="colour0" # tmux_conf_theme_colour_6="colour0"
#tmux_conf_theme_colour_7="colour15" # tmux_conf_theme_colour_7="colour15"
#tmux_conf_theme_colour_8="colour0" # tmux_conf_theme_colour_8="colour0"
#tmux_conf_theme_colour_9="colour11" # tmux_conf_theme_colour_9="colour11"
#tmux_conf_theme_colour_10="colour13" # tmux_conf_theme_colour_10="colour13"
#tmux_conf_theme_colour_11="colour10" # tmux_conf_theme_colour_11="colour10"
#tmux_conf_theme_colour_12="colour8" # tmux_conf_theme_colour_12="colour8"
#tmux_conf_theme_colour_13="colour15" # tmux_conf_theme_colour_13="colour15"
#tmux_conf_theme_colour_14="colour0" # tmux_conf_theme_colour_14="colour0"
#tmux_conf_theme_colour_15="colour0" # tmux_conf_theme_colour_15="colour0"
#tmux_conf_theme_colour_16="colour1" # tmux_conf_theme_colour_16="colour1"
#tmux_conf_theme_colour_17="colour15" # tmux_conf_theme_colour_17="colour15"
# window style # window style
tmux_conf_theme_window_fg="default" tmux_conf_theme_window_fg="default"
@ -233,14 +233,14 @@ tmux_conf_theme_window_status_last_bg="$tmux_conf_theme_colour_2"
tmux_conf_theme_window_status_last_attr="none" tmux_conf_theme_window_status_last_attr="none"
# status left/right sections separators # status left/right sections separators
tmux_conf_theme_left_separator_main="" # tmux_conf_theme_left_separator_main=""
tmux_conf_theme_left_separator_sub="|" # tmux_conf_theme_left_separator_sub="|"
tmux_conf_theme_right_separator_main="" # tmux_conf_theme_right_separator_main=""
tmux_conf_theme_right_separator_sub="|" # tmux_conf_theme_right_separator_sub="|"
#tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline
#tmux_conf_theme_left_separator_sub='\uE0B1' # you only need fonts patched with tmux_conf_theme_left_separator_sub='\uE0B1' # you only need fonts patched with
#tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone
#tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see README.md tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see README.md
# status left/right content: # status left/right content:
# - separate main sections with "|" # - separate main sections with "|"
@ -269,8 +269,8 @@ tmux_conf_theme_right_separator_sub="|"
# - #{uptime_s} # - #{uptime_s}
# - #{username} # - #{username}
# - #{username_ssh} # - #{username_ssh}
tmux_conf_theme_status_left=" ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} " # tmux_conf_theme_status_left=" ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} "
#tmux_conf_theme_status_left=" ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} | #{pretty_pane_current_path} " tmux_conf_theme_status_left="#{tmux_mode_indicator}| ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} | #{pretty_pane_current_path} "
tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized}#{?battery_status,#{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} " tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized}#{?battery_status,#{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} "
# status left style # status left style
@ -284,19 +284,19 @@ tmux_conf_theme_status_right_bg="$tmux_conf_theme_colour_15,$tmux_conf_theme_col
tmux_conf_theme_status_right_attr="none,none,bold" tmux_conf_theme_status_right_attr="none,none,bold"
# pairing indicator # pairing indicator
tmux_conf_theme_pairing="⚇" # U+2687 tmux_conf_theme_pairing="⚇ Pairing" # U+2687
tmux_conf_theme_pairing_fg="none" tmux_conf_theme_pairing_fg="none"
tmux_conf_theme_pairing_bg="none" tmux_conf_theme_pairing_bg="none"
tmux_conf_theme_pairing_attr="none" tmux_conf_theme_pairing_attr="none"
# prefix indicator # prefix indicator
tmux_conf_theme_prefix="⌨" # U+2328 tmux_conf_theme_prefix="⌨ Prefix" # U+2328
tmux_conf_theme_prefix_fg="none" tmux_conf_theme_prefix_fg="none"
tmux_conf_theme_prefix_bg="none" tmux_conf_theme_prefix_bg="$tmux_conf_theme_colour_2"
tmux_conf_theme_prefix_attr="none" tmux_conf_theme_prefix_attr="none"
# mouse indicator # mouse indicator
tmux_conf_theme_mouse="↗" # U+2197 tmux_conf_theme_mouse="↗ Mouse" # U+2197
tmux_conf_theme_mouse_fg="none" tmux_conf_theme_mouse_fg="none"
tmux_conf_theme_mouse_bg="none" tmux_conf_theme_mouse_bg="none"
tmux_conf_theme_mouse_attr="none" tmux_conf_theme_mouse_attr="none"
@ -370,7 +370,7 @@ tmux_conf_theme_clock_style="24"
# - false (default) # - false (default)
# - disabled # - disabled
# on Linux, this requires xsel, xclip or wl-copy # on Linux, this requires xsel, xclip or wl-copy
tmux_conf_copy_to_os_clipboard=false tmux_conf_copy_to_os_clipboard=true
# -- urlscan ------------------------------------------------------------------- # -- urlscan -------------------------------------------------------------------
@ -387,16 +387,16 @@ tmux_conf_urlscan_options="--compact --dedupe"
#set -g history-limit 10000 #set -g history-limit 10000
# start with mouse mode enabled # start with mouse mode enabled
#set -g mouse on set -g mouse on
# force Vi mode # force Vi mode
# really you should export VISUAL or EDITOR environment variable, see manual # really you should export VISUAL or EDITOR environment variable, see manual
#set -g status-keys vi #set -g status-keys vi
#set -g mode-keys vi set -g mode-keys vi
# replace C-b by C-a instead of using both prefixes # replace C-b by C-a instead of using both prefixes
# set -gu prefix2 # set -gu prefix2
# unbind C-a unbind C-a
# unbind C-b # unbind C-b
# set -g prefix C-a # set -g prefix C-a
# bind C-a send-prefix # bind C-a send-prefix
@ -448,7 +448,7 @@ tmux_conf_uninstall_plugins_on_reload=true
#set -g @plugin 'tmux-plugins/tmux-resurrect' #set -g @plugin 'tmux-plugins/tmux-resurrect'
#set -g @plugin 'tmux-plugins/tmux-continuum' #set -g @plugin 'tmux-plugins/tmux-continuum'
#set -g @continuum-restore 'on' #set -g @continuum-restore 'on'
set -g @plugin 'MunifTanjim/tmux-mode-indicator'
# -- custom variables ---------------------------------------------------------- # -- custom variables ----------------------------------------------------------
@ -459,6 +459,29 @@ tmux_conf_uninstall_plugins_on_reload=true
# #
# then, use #{foo} in e.g. the 'tmux_conf_theme_status_left' or the # then, use #{foo} in e.g. the 'tmux_conf_theme_status_left' or the
# 'tmux_conf_theme_status_right' variables. # 'tmux_conf_theme_status_right' variables.
# prompt to display when tmux prefix key is pressed
set -g @mode_indicator_prefix_prompt ' WAIT '
# prompt to display when tmux is in copy mode
set -g @mode_indicator_copy_prompt ' COPY '
# prompt to display when tmux has synchronized panes
set -g @mode_indicator_sync_prompt ' SYNC '
# prompt to display when tmux is in normal mode
set -g @mode_indicator_empty_prompt ' TMUX '
# style values for prefix prompt
set -g @mode_indicator_prefix_mode_style 'bg=blue,fg=black'
# style values for copy prompt
set -g @mode_indicator_copy_mode_style 'bg=yellow,fg=black'
# style values for sync prompt
set -g @mode_indicator_sync_mode_style 'bg=red,fg=black'
# style values for empty prompt
set -g @mode_indicator_empty_mode_style 'bg=cyan,fg=black'
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------