1
0
Fork 0
mirror of synced 2024-12-22 06:41:07 -05:00

updated theme with new poweline symbols code points

This commit is contained in:
Gregory Pakosz 2014-02-15 17:24:49 +01:00
parent ac606527c9
commit b8c009db9d

View file

@ -140,22 +140,21 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
# # exit the script if any statement returns a non-true return value # # exit the script if any statement returns a non-true return value
# set -e # set -e
# # exit the script on dereferencing uninitialised variables
# set -o nounset
# #
# apply_theme() { # apply_theme() {
# case "$1" in # case "$1" in
# powerline_patched_font) # powerline_patched_font)
# left_separator_light='⮁' # left_separator=''
# left_separator_bold='⮀' # left_separator_black=''
# right_separator_light='⮃' # right_separator=''
# right_separator_bold='⮂' # right_separator_black=''
# session_symbol=''
# ;; # ;;
# powerline) # powerline)
# left_separator_light='|' # left_separator='|'
# left_separator_bold=' ' # left_separator_black=' '
# right_separator_light='|' # right_separator='|'
# right_separator_bold=' ' # right_separator_black=' '
# ;; # ;;
# esac # esac
# #
@ -193,7 +192,7 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
# #
# session_fg=colour16 # black # session_fg=colour16 # black
# session_bg=colour226 # yellow # session_bg=colour226 # yellow
# status_left="#[fg=$session_fg,bg=$session_bg,bold] ❐ #S #[fg=$session_bg,bg=$status_bg,nobold]$left_separator_bold" # status_left="#[fg=$session_fg,bg=$session_bg,bold] ❐ #S #[fg=$session_bg,bg=$status_bg,nobold]$left_separator_black"
# tmux set -g status-left-length 32 \; set -g status-left "$status_left" # tmux set -g status-left-length 32 \; set -g status-left "$status_left"
# #
# window_status_fg=colour245 # light gray # window_status_fg=colour245 # light gray
@ -203,7 +202,7 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
# #
# window_status_current_fg=colour16 # black # window_status_current_fg=colour16 # black
# window_status_current_bg=colour39 # light blue # window_status_current_bg=colour39 # light blue
# window_status_current_format="#[fg=$window_status_bg,bg=$window_status_current_bg]$left_separator_bold#[fg=$window_status_current_fg,bg=$window_status_current_bg,noreverse,bold] #I $left_separator_light #W #[fg=$window_status_current_bg,bg=$status_bg,nobold]$left_separator_bold" # window_status_current_format="#[fg=$window_status_bg,bg=$window_status_current_bg]$left_separator_black#[fg=$window_status_current_fg,bg=$window_status_current_bg,bold] #I $left_separator #W #[fg=$window_status_current_bg,bg=$status_bg,nobold]$left_separator_black"
# tmux setw -g window-status-current-format "$window_status_current_format" # tmux setw -g window-status-current-format "$window_status_current_format"
# tmux set -g status-justify left # tmux set -g status-justify left
# #
@ -218,10 +217,9 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
# whoami_bg=colour160 # red # whoami_bg=colour160 # red
# host_fg=colour16 # black # host_fg=colour16 # black
# host_bg=colour254 # white # host_bg=colour254 # white
# status_right="#[fg=$time_date_fg]$right_separator_light %R $right_separator_light %d %b #[fg=$whoami_bg,bg=$time_date_bg,nobold]$right_separator_bold#[fg=$whoami_fg,bg=$whoami_bg,nobold] #(whoami) #[fg=$status_fg,nobold]$right_separator_bold#[fg=$host_fg,bg=$host_bg,bold] #h " # status_right="#[fg=$time_date_fg,nobold]$right_separator %R $right_separator %d %b #[fg=$whoami_bg,bg=$time_date_bg,nobold]$right_separator_black#[fg=$whoami_fg,bg=$whoami_bg,nobold] #(whoami) $right_separator_black#[fg=$host_fg,bg=$host_bg,bold] #h "
# tmux set -g status-right-length 64 \; set -g status-right "$status_right" # tmux set -g status-right-length 64 \; set -g status-right "$status_right"
# #
#
# # clock # # clock
# clock_mode_colour=colour39 # light blue # clock_mode_colour=colour39 # light blue
# tmux setw -g clock-mode-colour $clock_mode_colour # tmux setw -g clock-mode-colour $clock_mode_colour
@ -240,13 +238,13 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
# #
# maximize_pane() { # maximize_pane() {
# __current_pane=$(tmux display -p '#D') # __current_pane=$(tmux display -p '#D')
# #
# __dead_panes=$(tmux list-panes -s -F '#{pane_dead} #{pane_id} #{pane_title}' | grep -o '^1 %.\+%.\+$' || true) # __dead_panes=$(tmux list-panes -s -F '#{pane_dead} #{pane_id} #{pane_title}' | grep -o '^1 %.\+%.\+$' || true)
# __restore=$(echo "${__dead_panes}" | sed -n -E -e "s/^1 ${__current_pane} \[\+\](%[0-9]+)$/tmux swap-pane -s \1 -t ${__current_pane} \; kill-pane -t ${__current_pane}/p" -e "s/^1 (%[0-9]+) \[\+\]${__current_pane}$/tmux swap-pane -s \1 -t ${__current_pane} \; kill-pane -t \1/p" ) # __restore=$(echo "${__dead_panes}" | sed -n -E -e "s/^1 ${__current_pane} \[\+\](%[0-9]+)$/tmux swap-pane -s \1 -t ${__current_pane} \; kill-pane -t ${__current_pane}/p" -e "s/^1 (%[0-9]+) \[\+\]${__current_pane}$/tmux swap-pane -s \1 -t ${__current_pane} \; kill-pane -t \1/p" )
# #
# if [ x"${__restore}" = x ] ; then # if [ x"${__restore}" = x ] ; then
# [ x"$(tmux list-panes | wc -l | sed 's/^ *//g')" = x1 ] && tmux display "Can't maximize with only one pane" && return # [ x"$(tmux list-panes | wc -l | sed 's/^ *//g')" = x1 ] && tmux display "Can't maximize with only one pane" && return
# #
# __window=$(tmux new-window -P "exec maximized+ 2> /dev/null | tmux setw remain-on-exit on && printf '\033]2;%s\033\\' [+]${__current_pane}") # __window=$(tmux new-window -P "exec maximized+ 2> /dev/null | tmux setw remain-on-exit on && printf '\033]2;%s\033\\' [+]${__current_pane}")
# __window=${__window%.*} # __window=${__window%.*}
# #