Skip to content

Commit

Permalink
fix tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAlphaFox committed Nov 15, 2023
1 parent 3cec1d2 commit 457ba76
Showing 1 changed file with 73 additions and 36 deletions.
109 changes: 73 additions & 36 deletions tmux/tmux.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
set -g default-terminal xterm-256color
set -ga terminal-overrides ",*256col*:Tc"

## Start counting windows from 1
set -g base-index 1
setw -g mode-keys vi
Expand Down Expand Up @@ -50,42 +53,76 @@ set -g status-justify centre # center window list for clarity
set -g status-interval 15
set -g status-position top # position the status bar at top of screen

set -g pane-border-style fg='#6272a4'
set -g pane-active-border-style fg='#ff79c6'
set -g message-style bg='#44475a',fg='#8be9fd'
set -g status-style bg='#44475a',fg='#f8f8f2'
set -g window-status-current-style bg='#44475a',fg='#bd93f9'
set -g window-status-style bg='#44475a',fg='#ff79c6'
# window status
#set-window-option -g window-status-style fg='#bd93f9',bg=default
#set-window-option -g window-status-current-style fg='#ff79c6',bg='#282a36'
rarrow=''
larrow=''
user_icon=''
time_icon=''
date_icon=''
session_icon=''
time_format='%T'
date_format='%F'

#TC='#9370db'
#TC='#228b22'
TC='#00abab'
G01=#080808 #232
G02=#121212 #233
G03=#1c1c1c #234
#G04=#262626 #235
G04=#44475a
G05=#303030 #236
G06=#3a3a3a #237
G07=#444444 #238
G08=#4e4e4e #239
G09=#585858 #240
G10=#626262 #241
G11=#6c6c6c #242
G12=#767676 #243

FG="$G10"
BG="$G04"

set -g status-style fg="$FG",bg="$BG"
set -g status-left-style bg="$G04",fg="$G12"

user=$USER
LS="#[fg=$G04,bg=$TC,bold] $user_icon $user@#h #[fg=$TC,bg=$G06,nobold]$rarrow#[fg=$TC,bg=$G06] $session_icon #S #[fg=$G06,bg=$BG]$rarrow"
set -g status-left-length 150
set -g status-left "$LS"

set -g status-right bg="$BG",fg="$G12"
set -g status-right-length 150
RS="#[fg=$G06]$larrow#[fg=$TC,bg=$G06] $time_icon $time_format #[fg=$TC,bg=$G06]$larrow#[fg=$G04,bg=$TC] $date_icon $date_format "
set -g status-right "$RS"

set -g window-status-separator ''
set -g window-status-current-format ' [⧉ #I #W] '
set -g window-status-format ' #I #W '
set -g window-status-activity-style bold
set -g window-status-bell-style bold

# Don't show anything on the left side of the bar
#set -g status-left ""
# show session name, window & pane number, date and time on right side of
# status bar
#set -g status-right-length 60
#set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d/%m/%Y #[fg=green]:: %H:%M"
#set -g status-right '#[fg=#ff79c6,bg=#44475a]#[fg=#44475a,bg=#ff79c6]'
#set -ga status-right ' #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") '
set -g status-left-length 70
set -g status-left '#[bg=#f8f8f2,fg=#282a36]#h #[bg=#44475a,fg=#f8f8f2]'
set -g status-right '#[fg=#bd93f9,bg=#44475a]#[fg=#f8f8f2,bg=#bd93f9] %a %H:%M:%S #[fg=#6272a4]%Y-%m-%d'

# Don't show anything on the right side of the bar
#set -g status-right ""
#set -g default-command "/usr/bin/zsh"
#set -g default-shell "/usr/bin/fish"
set -g default-terminal xterm-256color
set -ga terminal-overrides ",*256col*:Tc"
#set -as terminal-overrides ',st*:kind@:kri@'
# Better mouse support
#set -g window-status-current-format ' [⧉ #I #W] '
#set -g window-status-format ' #I #W '
set -g window-status-format "#[fg=$BG,bg=$G06]$rarrow#[fg=$TC,bg=$G06] #I:#W #[fg=$G06,bg=$BG]$rarrow"
set -g window-status-current-format "#[fg=$BG,bg=$TC]$rarrow#[fg=$BG,bg=$TC,bold] #I:#W #[fg=$TC,bg=$BG,nobold]$rarrow"

# Window status style
set -g window-status-style "fg=$TC,bg=$BG,none"
set -g window-status-last-style "fg=$TC,bg=$BG,bold"
set -g window-status-activity-style "fg=$TC,bg=$BG,bold"

# Window separator
set -g window-status-separator ""

# Pane border
set -g pane-border-style "fg=$G07,bg=default"

# Active pane border
set -g pane-active-border-style "fg=$TC,bg=default"

# Pane number indicator
set -g display-panes-colour "$G07"
set -g display-panes-active-colour "$TC"

# Clock mode
set -g clock-mode-colour "$TC"
set -g clock-mode-style 24

#set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
#set -g @scroll-speed-num-lines-per-scroll '3'
# Message
set -g message-style "fg=$TC,bg=$BG"

0 comments on commit 457ba76

Please sign in to comment.