update theme
This commit is contained in:
parent
eb61cfe62e
commit
bb24e7600f
2 changed files with 53 additions and 75 deletions
83
.tmux.conf
83
.tmux.conf
|
@ -41,51 +41,58 @@ bind-key b split-window
|
|||
# auto window rename
|
||||
set-window-option -g automatic-rename
|
||||
|
||||
set -g status-interval 2
|
||||
|
||||
####################################
|
||||
# new theme
|
||||
|
||||
|
||||
set-window-option -g status-style bg=colour236,fg=white
|
||||
# left
|
||||
set-window-option -g status-left "#[bg=colour240,fg=white] #S #[fg=colour236,reverse]"
|
||||
set-window-option -g status-left-length 40
|
||||
# right
|
||||
set-window-option -g status-right "#[fg=black,bg=colour76] #(upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep time | awk '{print $4, $5}' | sed 's/hours/h/; s/minutes/m/; s/,/\./') #[bg=colour236,fg=white] #(tmux-mem-cpu-load --colors --interval 2) #[fg=colour252]#[fg=black,bg=colour252,nobold] %Y-%m-%d #[bold]%H:%M #[fg=colour231,bg=colour240] #H "
|
||||
set-window-option -g status-right-length 80
|
||||
# Status bar window currently active
|
||||
set-window-option -g window-status-current-format "#[fg=colour236]#[default,bold] #I #[fg=colour123,reverse]#[default]#[bg=colour123] #W #[fg=colour236,reverse]"
|
||||
# colour33 is green
|
||||
set-window-option -g window-status-current-style none,bg=colour33,fg=black
|
||||
# Status bar window in background (not active)
|
||||
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour240,reverse]#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]"
|
||||
|
||||
# Black on green
|
||||
set-window-option -g window-status-style none,bg=colour76,fg=black
|
||||
|
||||
###################################
|
||||
# old theme
|
||||
# ### colors
|
||||
# set -g default-terminal "tmux-256color"
|
||||
# set -ag terminal-overrides ",xterm-256color:RGB"
|
||||
#
|
||||
# set-option -g status-style bg=colour235,fg=colour136
|
||||
#
|
||||
# # default window title colors
|
||||
# set-window-option -g window-status-style fg=colour39,bg=default,dim
|
||||
#
|
||||
# # active window title colors
|
||||
# set-window-option -g window-status-current-style fg=colour235,bg=colour113,bright
|
||||
#
|
||||
# # pane border
|
||||
# set-option -g pane-border-style fg=colour235 #base02
|
||||
# set-option -g pane-active-border-style fg=colour240 #base01
|
||||
#
|
||||
# # message text
|
||||
# set-option -g message-style bg=colour235 #base02
|
||||
# set-option -g message-style fg=colour166 #orange
|
||||
#
|
||||
# # pane number display
|
||||
# set-option -g display-panes-active-colour colour33 #blue
|
||||
# set-option -g display-panes-colour colour166 #orange
|
||||
# # clock
|
||||
# set-window-option -g clock-mode-colour green #green
|
||||
#
|
||||
#
|
||||
# ### status
|
||||
# # status bar
|
||||
# #set-option -g status-utf8 on
|
||||
# set -g status-interval 10
|
||||
# set -g status-justify left # center align window list
|
||||
# set -g status-left-length 14
|
||||
# set -g status-right-length 140
|
||||
# #set -g status-left '#[default]〘 '
|
||||
# set -g status-left '#[fg=green,bright]#(uname -r | cut -c 1-8)#[default]〘'
|
||||
# set -g status-right "〙🔋 #(upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep time | awk '{print $4, $5}' | sed 's/hours/h/; s/minutes/m/; s/,/\./') #[fg=red,bg=default]⇑#(uptime -p |sed 's/\ week/w/; s/\ days/d/; s/\ day/d/; s/\ hours/h/; s/\ minutes/m/; s/\ minute/m/; s/,//g; s/up//') #[fg=green,bg=default]⎋ #(cat /proc/loadavg | awk '{print $1,$2,$3}') #[fg=blue]⌚ %Y-%m-%d #[fg=white,bg=default]⌚ %H:%M #[fg=green]⚼ #H"
|
||||
# Status bar window last active (Tmux 1.8+)
|
||||
#
|
||||
|
||||
set-window-option -g window-status-last-style none,bg=cyan,fg=black
|
||||
|
||||
#
|
||||
# Status bar window with activity/silence (monitor-activity, monitor-silence)
|
||||
#
|
||||
|
||||
# colour127 is pink
|
||||
set-window-option -g window-status-activity-style bold,bg=colour127,fg=black
|
||||
|
||||
#
|
||||
# Status bar window with bell triggered
|
||||
#
|
||||
|
||||
# red is urgent
|
||||
set-window-option -g window-status-bell-style bold,bg=red,fg=black
|
||||
|
||||
######
|
||||
# notes
|
||||
|
||||
# battery status
|
||||
#(upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep time | awk '{print $4, $5}' | sed 's/hours/h/; s/minutes/m/; s/,/\./')
|
||||
|
||||
# uptime
|
||||
#(uptime -p |sed 's/\ week/w/; s/\ days/d/; s/\ day/d/; s/\ hours/h/; s/\ minutes/m/; s/\ minute/m/; s/,//g; s/up//')
|
||||
|
||||
# load
|
||||
#(cat /proc/loadavg | awk '{print $1,$2,$3}')
|
||||
|
||||
|
|
|
@ -7,22 +7,6 @@
|
|||
: ${TMUX_POWERLINE_SYMBOLS:=unicode}
|
||||
|
||||
case "$TMUX_POWERLINE_SYMBOLS" in
|
||||
powerline )
|
||||
# Powerline glyphs at U+E000-U+F8FF range ("Private Use Area")
|
||||
# These are the code points used in the new universal Powerline
|
||||
tmux_powerline_symbol_right_full=""
|
||||
tmux_powerline_symbol_right_thin=""
|
||||
tmux_powerline_symbol_left_full=""
|
||||
tmux_powerline_symbol_left_thin=""
|
||||
;;
|
||||
vim-powerline )
|
||||
# Powerline glyphs at U+2B60-U+2BFF range ("Miscellaneous Symbols and Arrows")
|
||||
# These are the code points used in Lokaltog/vim-powerline
|
||||
tmux_powerline_symbol_right_full="⮀"
|
||||
tmux_powerline_symbol_right_thin="⮁"
|
||||
tmux_powerline_symbol_left_full="⮂"
|
||||
tmux_powerline_symbol_left_thin="⮃"
|
||||
;;
|
||||
unicode )
|
||||
# Unicode glyphs which don't require patched font
|
||||
tmux_powerline_symbol_right_full=""
|
||||
|
@ -30,19 +14,6 @@ case "$TMUX_POWERLINE_SYMBOLS" in
|
|||
tmux_powerline_symbol_left_full=""
|
||||
tmux_powerline_symbol_left_thin="│"
|
||||
;;
|
||||
ascii )
|
||||
# ASCII glyphs which don't require patched font or Unicode support
|
||||
tmux_powerline_symbol_right_full=""
|
||||
tmux_powerline_symbol_right_thin="|"
|
||||
tmux_powerline_symbol_left_full=""
|
||||
tmux_powerline_symbol_left_thin="|"
|
||||
;;
|
||||
none | * )
|
||||
# No symbols.
|
||||
tmux_powerline_symbol_right_full=""
|
||||
tmux_powerline_symbol_right_thin=""
|
||||
tmux_powerline_symbol_left_full=""
|
||||
tmux_powerline_symbol_left_thin=""
|
||||
esac
|
||||
|
||||
#
|
||||
|
@ -96,7 +67,7 @@ tmux set-window-option -g status-style bg=colour236,fg=white
|
|||
|
||||
# Show session name?
|
||||
if [ "${TMUX_POWERLINE_SHOW_SESSION_NAME}" = "on" ]; then
|
||||
tmux set-window-option -g status-left "#[bg=colour240,fg=white] #S #[fg=colour236,reverse]${tmux_powerline_symbol_right_full}"
|
||||
tmux set-window-option -g status-left "#[bg=colour240,fg=white] #S #[fg=colour236,reverse]"
|
||||
tmux set-window-option -g status-left-length 40
|
||||
else
|
||||
tmux set-window-option -g status-left ""
|
||||
|
@ -107,7 +78,7 @@ fi
|
|||
# Status bar right side
|
||||
#
|
||||
|
||||
tmux set-window-option -g status-right "#[fg=colour244]#S:#I:#P #[fg=colour240]${tmux_powerline_symbol_left_full}#[fg=colour231,bg=colour240] #H #[fg=colour252]${tmux_powerline_symbol_left_full}#[fg=black,bg=colour252,nobold] %b %d %a #[bold]%H:%M "
|
||||
tmux set-window-option -g status-right "#[fg=colour244]#S:#I:#P #[fg=colour240]#[fg=colour231,bg=colour240] #H #[fg=colour252]#[fg=black,bg=colour252,nobold] %b %d %a #[bold]%H:%M "
|
||||
tmux set-window-option -g status-right-length 80
|
||||
|
||||
#
|
||||
|
@ -115,9 +86,9 @@ tmux set-window-option -g status-right-length 80
|
|||
#
|
||||
|
||||
if [ "${TMUX_POWERLINE_COMPACT_CURRENT}" = "on" ]; then
|
||||
tmux set-window-option -g window-status-current-format "#[fg=colour236]${tmux_powerline_symbol_right_full}#[default,fg=colour231,bold] #I${tmux_powerline_flag} #[default,fg=colour236,reverse]${tmux_powerline_symbol_right_full}"
|
||||
tmux set-window-option -g window-status-current-format "#[fg=colour236]#[default,fg=colour231,bold] #I #[default,fg=colour236,reverse]"
|
||||
else
|
||||
tmux set-window-option -g window-status-current-format "#[fg=colour236]${tmux_powerline_symbol_right_full}#[default,bold] #I${tmux_powerline_flag} #[fg=colour123,reverse]${tmux_powerline_symbol_right_full}#[default]#[bg=colour123] #W #[fg=colour236,reverse]${tmux_powerline_symbol_right_full}"
|
||||
tmux set-window-option -g window-status-current-format "#[fg=colour236]#[default,bold] #I #[fg=colour123,reverse]#[default]#[bg=colour123] #W #[fg=colour236,reverse]"
|
||||
fi
|
||||
|
||||
# colour33 is green
|
||||
|
@ -128,9 +99,9 @@ tmux set-window-option -g window-status-current-style none,bg=colour33,fg=black
|
|||
#
|
||||
|
||||
if [ "${TMUX_POWERLINE_COMPACT_OTHER}" = "on" ]; then
|
||||
tmux set-window-option -g window-status-format "#[fg=colour236,nounderscore]${tmux_powerline_symbol_right_full}#[default,bold,nounderscore] #I${tmux_powerline_flag} #[fg=colour236,reverse]${tmux_powerline_symbol_right_full}"
|
||||
tmux set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour236,reverse]"
|
||||
else
|
||||
tmux set-window-option -g window-status-format "#[fg=colour236,nounderscore]${tmux_powerline_symbol_right_full}#[default,bold,nounderscore] #I${tmux_powerline_flag} #[fg=colour240,reverse]${tmux_powerline_symbol_right_full}#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]${tmux_powerline_symbol_right_full}"
|
||||
tmux set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour240,reverse]#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]"
|
||||
fi
|
||||
|
||||
# Black on green
|
||||
|
|
Loading…
Reference in a new issue