tmux.tin 628 B

12345678910111213141516171819
  1. #alias {tmux.UpdateCharData} {
  2. #if { "$char[档案][账号]" == "" } {
  3. #return;
  4. };
  5. #local id {#[fg=brightwhite]$char[档案][账号]#[default]};
  6. #local name {#[fg=brightcyan]$char[档案][大名]#[default]};
  7. #local title {$char[档案][头衔]};
  8. #replace title {;} { };
  9. #local title {#[bold fg=red]$title#[default]};
  10. #local file {tmux/$char[档案][账号]/char-data};
  11. #script {tmp} {echo "ID: [$id] 大名: [$name] 头衔: [$title]" > $file};
  12. #script {tmp} {tmux refresh};
  13. };
  14. load-lib event;
  15. event.Handle {char/status} {tmux} {ui} {tmux.UpdateCharData};