htop_screenrc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. # Allow bold colors - necessary for some reason
  5. attrcolor b ".I"
  6. # Tell screen how to set colors. AB = background, AF=foreground
  7. termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  8. # Enables use of shift-PgUp and shift-PgDn
  9. termcapinfo xterm|xterms|xs|rxvt ti@:te@
  10. # Erase background with current bg color
  11. defbce "on"
  12. # Enable 256 color term
  13. term xterm-256color
  14. # Cache 30000 lines for scroll back
  15. defscrollback 30000
  16. # New mail notification
  17. backtick 101 30 15 $HOME/bin/mailstatus.sh
  18. hardstatus alwayslastline
  19. # Very nice tabbed colored hardstatus line
  20. 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%{-}'
  21. # change command character from ctrl-a to ctrl-b (emacs users may want this)
  22. escape ^Hh
  23. # Hide hardstatus: ctrl-a f
  24. bind f eval "hardstatus ignore"
  25. # Show hardstatus: ctrl-a F
  26. bind F eval "hardstatus alwayslastline"
  27. # Launch htop
  28. screen -t htop-local htop
  29. split
  30. focus
  31. screen -t htop-master ssh vo_admin@172.20.65.109 -t /usr/local/bin/htop
  32. split
  33. focus
  34. screen -t htop-slave ssh vo_admin@172.20.65.110 -t /usr/local/bin/htop
  35. #screen -t git-status fish -i -c 'git status'