htop_screenrc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # GNU Screen - main configuration file
  2. # All other .screenrc files will source this file to inherit settings.
  3. # Author: Christian Wills - cwills.sys@gmail.com
  4. # Modified by Jovian Hersemeule to launche htop on many ssh hosts at once
  5. # Allow bold colors - necessary for some reason
  6. attrcolor b ".I"
  7. # Tell screen how to set colors. AB = background, AF=foreground
  8. termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  9. # Enables use of shift-PgUp and shift-PgDn
  10. termcapinfo xterm|xterms|xs|rxvt ti@:te@
  11. # Erase background with current bg color
  12. defbce "on"
  13. # Enable 256 color term
  14. term xterm-256color
  15. # Cache 30000 lines for scroll back
  16. defscrollback 30000
  17. # New mail notification
  18. backtick 101 30 15 $HOME/bin/mailstatus.sh
  19. hardstatus alwayslastline
  20. # Very nice tabbed colored hardstatus line
  21. hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'
  22. # change command character from ctrl-a to ctrl-b (emacs users may want this)
  23. escape ^Hh
  24. # Hide hardstatus: ctrl-a f
  25. bind f eval "hardstatus ignore"
  26. # Show hardstatus: ctrl-a F
  27. bind F eval "hardstatus alwayslastline"
  28. # Launch htop
  29. screen -t htop-local htop
  30. split
  31. focus
  32. screen -t htop-master ssh vo_admin@172.20.65.109 -t /usr/local/bin/htop
  33. split
  34. focus
  35. screen -t htop-slave ssh vo_admin@172.20.65.110 -t /usr/local/bin/htop
  36. #screen -t git-status fish -i -c 'git status'