Last active
August 29, 2015 14:00
-
-
Save yoshikaw/11116438 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Appearance {{{1 | |
#------------------------------------------------------------------------------- | |
# Hardstatus {{{2 | |
setenv a "" | |
### Segment of date | |
setenv a "$a%{gk}" # set attribute(1) = {black(k) on green(g)} | |
setenv a "$a " # SPACE | |
setenv a "$a%m/%d" # current date | |
setenv a "$a " # SPACE | |
setenv a "$a%{-}" # remove current attribute(1) | |
### Segment of time | |
setenv a "$a%{Gg}" # set attribute(2) = {green(g) on bright Green(G)} | |
setenv a "$a⮀" | |
setenv a "$a%{-}" # remove current attribute(2) | |
setenv a "$a%{Gk}" # set attribute(3) = {black(k) on bright Green(G)} | |
setenv a "$a " # SPACE | |
setenv a "$a%02c:%s" # current time in 24h format(hour:min:sec) | |
setenv a "$a " # SPACE | |
setenv a "$a%{-}" # remove current attribute(3) | |
### Segment of hostname | |
setenv a "$a%?%E" # if the escape character has pressed | |
setenv a "$a%{YG}" # set attribute(4) = {bright Green(G) on bright Yellow(Y)} | |
setenv a "$a%:" # else | |
setenv a "$a%{WG}" # set attribute(4) = {bright Green(G) on bright White(W)} | |
setenv a "$a%?" # end if | |
setenv a "$a⮀" | |
setenv a "$a%{-}" # remove current attribute(4) | |
setenv a "$a%?%E" # if the escape character has pressed | |
setenv a "$a%{Yr}" # set attribute(5) = {red(r) on bright Yellow(Y)} | |
setenv a "$a%:" # else | |
setenv a "$a%{Wk}" # set attribute(5) = {black(k) on bright White(W)} | |
setenv a "$a%?" # end if | |
setenv a "$a " # SPACE | |
setenv a "$a%H" # hostname | |
setenv a "$a " # SPACE | |
setenv a "$a%{-}" # remove current attribute(5) | |
### Segment of layout | |
# *** these features are made by custom patch *** | |
setenv a "$a%?%E" # if the escape character has pressed | |
setenv a "$a%{wY}" # set attribute(6) = {bright Yellow(Y) on white(w)} | |
setenv a "$a%:" # else | |
setenv a "$a%{wW}" # set attribute(6) = {bright White(W) on white(w)} | |
setenv a "$a%?" # end if | |
setenv a "$a⮀" | |
setenv a "$a%{-}" # remove current attribute(6) | |
setenv a "$a%{wb}" # set attribute(7) = {blue(b) on white(w)} | |
setenv a "$a " # SPACE | |
setenv a "$a%o" # *** layout number | |
setenv a "$a " # SPACE | |
setenv a "$a%O" # *** layout name | |
setenv a "$a " # SPACE | |
setenv a "$a%{-}" # remove current attribute(7) | |
### Segment of window group | |
# *** these features are made by custom patch *** | |
setenv a "$a%{Kw}" # set attribute(8) = {white(w) on bright Black(K)} | |
setenv a "$a⮀" | |
setenv a "$a " # SPACE | |
setenv a "$a%{.w}" # set attribute(9) = {white(w) on current color(.)} | |
setenv a "$a%G" # *** window group name | |
setenv a "$a%{-}" # remove current attribute(9) | |
setenv a "$a " # SPACE | |
### Segment of windows | |
setenv a "$a " # SPACE | |
setenv a "$a%{dK}" # set attribute(10) = {bright Black(K) on default(d)} | |
setenv a "$a⮀" | |
setenv a "$a%{.d}" # set attribute(11) = {default(d) on current color(.)} | |
setenv a "$a " # SPACE | |
setenv a "$a%L=" | |
setenv a "$a%-Lw" # show other windows (w) with flags (L) before current (-) | |
setenv a "$a%45L>" # | |
setenv a "$a%?%E" # if the escape character has pressed | |
setenv a "$a%{Yk}" # set attribute(12) = {black(k) on bright Yellow(Y)} | |
setenv a "$a%:" # else | |
setenv a "$a%{Wk}" # set attribute(12) = {black(k) on bright White(W)} | |
setenv a "$a%?" # end if | |
setenv a "$a " # SPACE | |
setenv a "$a%?%E" # if the escape character has pressed | |
setenv a "$a%{.r}" # set attribute(13) = {red(r) on current color(.)} | |
setenv a "$a%:" # else | |
setenv a "$a%{..}" # set attribute(13) = {current color(.) on current color(.)} | |
setenv a "$a%?" # end if | |
setenv a "$a%n" # window number | |
setenv a "$a%{-}" # remove current attribute(13) | |
setenv a "$a%{.r}" # set attribute(14) = {red(r) on current color(.)} | |
setenv a "$a%f" # flags of the window | |
setenv a "$a%{-}" # remove current attribute(14) | |
setenv a "$a%{-}" # remove current attribute(12) | |
setenv a "$a%?%E" # if the escape character has pressed | |
setenv a "$a%{gY}" # set attribute(15) = {bright Yellow(Y) on green(g)} | |
setenv a "$a%:" # else | |
setenv a "$a%{gW}" # set attribute(15) = {bright White(W) on green(g)} | |
setenv a "$a%?" # end if | |
setenv a "$a⮀" | |
setenv a "$a%{-}" # remove current attribute(15) | |
setenv a "$a%{gW}" # set attribute(16) = {bright White(W) on green(g)} | |
setenv a "$a " # SPACE | |
setenv a "$a%t" # window title | |
setenv a "$a " # SPACE | |
setenv a "$a%{kg}" # set attribute(17) = {green(g) on black(k)} | |
setenv a "$a⮀" | |
setenv a "$a%{-}" # remove current attribute(17) | |
setenv a "$a%{-}" # remove current attribute(16) | |
setenv a "$a%+Lw" # show other windows (w) with flags (L) after current (+) | |
setenv a "$a " # SPACE | |
### Segment of load of the systems | |
setenv a "$a%-17<" | |
setenv a "$a%=" # pad to display width | |
setenv a "$a%{.y}" # set attribute(18) = {yellow(y) on current color(.)} | |
setenv a "$a(%l)" # current load of the systems | |
hardstatus alwayslastline "$a" | |
unsetenv a | |
# }}}2 | |
# Caption for each window {{{2 | |
setenv a "" | |
### Segment of window number | |
setenv a "$a%?%F" # if the window has the focus | |
setenv a "$a%{Wk}" # set attribute(1) = {black(k) on bright White(W)} | |
setenv a "$a%:" # else | |
setenv a "$a%{KW}" # set attribute(1) = {bright Black(K) on bright White(W)} | |
setenv a "$a%?" # end if | |
setenv a "$a%?%E" # if the escape character has pressed | |
setenv a "$a%{Yr}" # set attribute(2) = {red(r) on bright Yellow(Y)} | |
setenv a "$a%?" # end if | |
setenv a "$a " # SPACE | |
setenv a "$a%n" # window number | |
setenv a "$a " # SPACE | |
### Segment of window flags | |
setenv a "$a%?%F" # if the window has the focus | |
setenv a "$a%:" # else | |
setenv a "$a%{Kw}" # set attribute(3) = {white(w) on bright Black(K)} | |
setenv a "$a%?" # end if | |
setenv a "$a%{.r}" # set attribute(4) = {red(r) on current color(.)} | |
setenv a "$a%f" # flags of the window | |
setenv a "$a%{-}" # remove current attribute(4) | |
### Segment of window encoding | |
# *** these features are made by custom patch *** | |
setenv a "$a%?%F" # if the window has the focus | |
setenv a "$a%{wk}" # set attribute(5) = {black(k) on white(w)} | |
setenv a "$a%:" # else | |
setenv a "$a%{.k}" # set attribute(5) = {black(k) on current color(.)} | |
setenv a "$a%?" # end if | |
setenv a "$a " # SPACE | |
setenv a "$a%e" # *** window encoding | |
setenv a "$a " # SPACE | |
### Segment of window title | |
setenv a "$a%?%F" # if the window has the focus | |
setenv a "$a%{${SCREEN_COLOR}W}" # set attribute(6) = {bright White(W) on $SCREEN_COLOR} := normal mode | |
setenv a "$a%{Yr}" # set attribute(7) = {red(r) on bright Yellow(Y)} := in copy/paste mode | |
setenv a "$a%:" # else | |
setenv a "$a%{.w}" # set attribute(6) = {white(w) on default(.)} := normal mode | |
setenv a "$a%{yr}" # set attribute(7) = {red(r) on yellow(y)} := in copy/paste mode | |
setenv a "$a%?" # end if | |
setenv a "$a%?%P" # if the window is in copy/paste mode | |
setenv a "$a%:" # else | |
setenv a "$a%{-}" # remove current attribute(7) | |
setenv a "$a%?" # end if | |
setenv a "$a " # SPACE | |
setenv a "$a%?%E" # if the escape character has pressed | |
setenv a "$a%{.r}" # set attribute(8) = {red(r) on current color(.)} | |
setenv a "$a%?" # end if | |
setenv a "$a%t" # window title | |
setenv a "$a%050=" # keep 50 padding for window title | |
### Segment of hardstatus of the window | |
# *** these features are made by custom patch *** | |
setenv a "$a%?%F" # if the window has the focus | |
setenv a "$a%{Yr}" # set attribute(9) = {red(r) on bright Yellow(Y)} | |
setenv a "$a%:" # else | |
setenv a "$a%{yr}" # set attribute(9) = {red(r) on Yellow(y)} | |
setenv a "$a%?" # end if | |
setenv a "$a%?%P" # if the window into copy/paste mode | |
setenv a "$a<< copy/scrollback mode. [%J:%N] >>" # draw this strings *** line delimiter(%J), append mode(%N) | |
setenv a "$a%:" # else | |
setenv a "$a%{-}" # remove current attribute(8) | |
setenv a "$a%{.k}" # set attribute(10) = {black(k) on current color(.)} | |
setenv a "$a%?" # end if | |
setenv a "$a " # SPACE | |
setenv a "$a%h" # hardstatus of the window | |
setenv a "$a%=" # pad to display width | |
caption always "$a" | |
unsetenv a | |
# }}}2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment