변경된 창의 Tmux 설정 색 -g monitor-activity on set -g

비 현재 창 내용이 변경되면 Tmux에 알려주십시오.

setw -g monitor-activity on
set -g visual-activity on

유일한 문제는 색이 빨라요. fg / bg의 색상을 회색에서 더 잘 혼합되는 것으로 변경하고 싶습니다. 어떻게 할 수 있습니까 (옵션 이름은 무엇입니까)?



답변

활동 및 무음 모니터링 기능은 일련의 디스플레이 구성 옵션을 공유합니다.

  • window-status-activity-attr
  • window-status-activity-fg
  • window-status-activity-bg

“attr”의 기본값은 reverse이므로 색상도 변경하는 경우 다른 배경으로 설정할 수 있습니다 ( …-fg효과적인 배경색으로 반전되는 대신 효과적인 전경색을 설정 함). 의 매뉴얼 페이지 설명에서 속성 이름 목록을 참조하십시오 message-attr.

색상의 기본값은 default이며, 상태 표시 줄을 만들 때 마지막으로 설정 한대로 그대로 둡니다. 의 매뉴얼 페이지 설명에서 색상 목록을 참조하십시오 message-bg.

set-option -gw window-status-activity-attr bold
set-option -gw window-status-activity-bg black
set-option -gw window-status-activity-fg red

다른 “경고”(콘텐츠 모니터링 및 벨)에는 자체 디스플레이 옵션이 있습니다 ( 옵션 이름 activity으로 content또는 bell옵션 이름으로 대체 ).


답변

실제로, 이후의 tmux 버전 (1.9a에서보고 있음)에서는 스타일 설정 방식에 변화가있는 것 같습니다.

@ChrisJohnsen의 대답은 여전히 ​​적용되며 (및 tmuxconfig는 여전히 이러한 문장을 사용합니다) 관리에 의해 설명 된 새로운 방법 *-style은 삼중 항 대신 삼항식을 사용 하는 것입니다 *-attr *-bg *-fg. 따라서 단일 창으로 이러한 창 옵션의 스타일을 지정할 수 있습니다 세 가지보다는 진술.

message-command-style style
    Set status line message command style, where style is a
    comma-separated list of characteristics to be specified.

    These may be `bg=colour' to set the background colour,
    `fg=colour' to set the foreground colour, and a list of
    attributes as specified below.

    The colour is one of: black, red, green, yellow, blue,
    magenta, cyan, white, aixterm bright variants (if sup-
    ported: brightred, brightgreen, and so on), colour0 to
    colour255 from the 256-colour set, default, or a hexadec-
    imal RGB string such as `#ffffff', which chooses the
    closest match from the default 256-colour set.

    The attributes is either none or a comma-delimited list
    of one or more of: bright (or bold), dim, underscore,
    blink, reverse, hidden, or italics, to turn an attribute
    on, or an attribute prefixed with `no' to turn one off.

    Examples are:

          fg=yellow,bold,underscore,blink
          bg=black,fg=default,noreverse

    With the -a flag to the set-option command the new style
    is added otherwise the existing style is replaced.

따라서이 선언은 다음과 같습니다.

set-option -gw window-status-activity-style fg=red,bg=black,bold


답변