From 54c4cd23a94cc32c83e296d003b4e8a41fb39c7d Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Mon, 20 Apr 2015 15:09:14 +0800 Subject: [PATCH] Fix time preset --- time.md | 4 ++-- tmux.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ unicode.md | 2 +- vim-digraphs.md | 6 ++--- 4 files changed, 65 insertions(+), 6 deletions(-) diff --git a/time.md b/time.md index af9074ca0..ad3766378 100644 --- a/time.md +++ b/time.md @@ -11,8 +11,8 @@ layout: default %b %e %a - Jan 5 Sun Time presets - %H:%M - 23:05 - %I:%Mp - 11:05PM + %H:%M - 23:05 + %I:%M%p - 11:05PM Weekday %a - Sun diff --git a/tmux.md b/tmux.md index 4e2d58847..f557ee06c 100644 --- a/tmux.md +++ b/tmux.md @@ -51,3 +51,62 @@ layout: default ### Niceties C-b t # Time + +## Status formats + +``` +setw -g window-status-format `#[fg=8,bg=default]#I` +``` + +See `message-command-style` in the man page. + +### Attribute/colors + +| `#[fg=1]` | standard color | +| `#[fg=yellow]` | yellow | +| `#[bold]` | bold | +| `#[fg=colour240]` | 256 color | +| `#[fg=default]` | default | +| `#[fg=1,bg=2]` | combinations | +| `#[default]` | reset | + +### Colors + + * `black` `red` `green` `yellow` `blue` `magenta` `cyan` `white` + * `brightred` (and so on) + * `colour0` ... `colour255` + * `#333` (rgb hex) + +### Attributes + + * `bold` `underscore` `blink` `noreverse` `hidden` `dim` `italics` + +### Variables + +| `#(date)` | shell command | +| `#I` | window index | +| `#S` | session name | +| `#W` | window name | +| `#F` | window flags | +| `#H` | Hostname | +| `#h` | Hostname, short | +| `#D` | pane id | +| `#P` | pane index | +| `#T` | pane title | + +## Options + + set -g status-justify [left|centre|right] + set -g status-left '...' + + setw -g window-status-style + setw -g window-status-activity-style + setw -g window-status-bell-style + setw -g window-status-content-style + setw -g window-status-current-style + setw -g window-status-last-style + + setw -g window-status-format + setw -g window-status-current-format + + setw -g window-status-separator diff --git a/unicode.md b/unicode.md index a1c17f19d..95a048fc7 100644 --- a/unicode.md +++ b/unicode.md @@ -3,7 +3,7 @@ title: Unicode symbols layout: default --- - ✈' \u2708 airplane + ✈ \u2708 airplane ❄ \u2744 snowflake ⚑ \u2691 flag ☯ \u262f yinyang diff --git a/vim-digraphs.md b/vim-digraphs.md index 52b26e85a..31db989a0 100644 --- a/vim-digraphs.md +++ b/vim-digraphs.md @@ -64,13 +64,13 @@ title: Vim digraphs | ▶ | ▷ | ◀ | ◁ | | PR | Tr | PL | Tl | -| » | « | 〈 | 〉 | ‹ | › | -| >> | << | | <1 | >21 | +| » | « | 〈 | 〉 | ‹ | › | +| >> | << | | <1 | >1 | ### Arrows | ← | → | ↑ | ↓ | ↕ | ↔ | -| <- | -! | -> | -v | UD | <> | +| <- | -> | -! | -v | UD | <> | | ⇐ | ⇒ | ⇔ | | <= | => | == |