From baca4283380988bb7800e5d6e24dda439069979f Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 3 Dec 2024 13:00:00 +0800 Subject: Update --- alias | 2 +- misc/tmux.conf | 29 ++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/alias b/alias index 09f3ae1..1ad9435 100644 --- a/alias +++ b/alias @@ -178,7 +178,7 @@ file.size() { # }}} # TTY {{{ alias tma='tmux a' -alias tmux.config="$EDITOR ~/.tmux.conf" +alias tmux.conf="$EDITOR ~/.tmux.conf" alias terminal.color='printf "\e[%dm%d dark\e[0m \e[%d;1m%d bold\e[0m\n" {30..37}{,,,}' # }}} # NETWORK {{{ diff --git a/misc/tmux.conf b/misc/tmux.conf index 013aee8..c034bd4 100644 --- a/misc/tmux.conf +++ b/misc/tmux.conf @@ -1,3 +1,5 @@ +new-session # Start a new session if none available + # tty set -g default-terminal "tmux-256color" set -ag terminal-overrides ",xterm-256color:RGB" @@ -8,13 +10,13 @@ set -gw xterm-keys on unbind C-b set -g prefix C-g -# status bar -set-window-option -g window-status-current-style bg=yellow - # Tab key bind-key -nr C-_ send-keys C-/ -new-session # Start a new session if none available +# status bar +set-option status-style fg=#ffffff,bg=blue +set-window-option -g window-status-current-style fg=black,bg=yellow + bind N new-session bind-key -n C-F3 set -g status #Ctrl+F3 Combo @@ -60,14 +62,14 @@ color_window_off_status_current_bg="colour254" # nested tmux -bind -T root S-F12 \ - set prefix None \;\ - set key-table off \;\ - set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\ - set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\ - set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\ - if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ - refresh-client -S \;\ +#bind -T root S-F12 \ +# set prefix None \;\ +# set key-table off \;\ +# set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\ +# set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\ +# set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\ +# if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ +# refresh-client -S \;\ bind -T root F12 \ set prefix None \;\ @@ -80,9 +82,6 @@ bind -T off F12 \ set -u prefix \;\ set -u key-table \;\ set -u status \;\ - set -u status-style \;\ - set -u window-status-current-style \;\ - set -u window-status-current-format \;\ refresh-client -S #wg_is_keys_off="#[fg=$color_light,bg=$color_window_off_indicator]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[default]" -- cgit v1.2.3-70-g09d2