Advertisement
seiburii

Conf - screenrc

May 17th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. #
  2. backtick 1 1 1 date +%Y%m%d_%H%M
  3. logfile '/home/seiburii/logfiles/%H_-_%S_-_%t_-_%Y%m%d_%c:%s.log'
  4. #logfile '/home/seiburii/logfiles/%H_-_%S_-_%t_-_%1`%s.log'
  5.  
  6.  
  7.  
  8. defscrollback 10000
  9.  
  10. hardstatus alwayslastline
  11. hardstatus string "%{= KW} %H [%`] %{= Kw}|%{-} %-Lw%{= bW}%n%f %t%{-}%+Lw %=%1`%:"
  12.  
  13. # Older Versions
  14. # last date used - 2020-01-24
  15. #hardstatus string "%{= KW} %H [%`] %{= Kw}|%{-} %-Lw%{= bW}%n%f %t%{-}%+Lw %=%c %Y-%M-%d"
  16.  
  17. # Instructions for backtick and screen info
  18. #
  19. # https://www.gilesorr.com/blog/screen-backtick.html
  20. # http://www.gnu.org/software/screen/manual/html_node/String-Escapes.html
  21. #
  22. #
  23. # %{= wK} : set colors to bright white (W) on bright black (K) and keep current text styles (=)
  24. # %H : hostname
  25. # [ : opening bracket character
  26. # %` : print output of 'backtick' command (defined elsewhere in .screenrc)
  27. # ] : closing bracket character
  28. # %{= wW} : set colors to white (w) on bright black (K) and keep current text styles (=)
  29. # | : bar character
  30. # ${-} : restore colors to previous colors / undo last color change
  31. # %-Lw : list windows before current window (L [optional] = "include flags")
  32. # %{= bW} : set colors to bright white (W) on blue (b) and keep current text styles (=)
  33. # %f : window flags
  34. # %t : window title
  35. # %{-} : restore colors to previous colors / undo last color change
  36. # %+Lw : list windows after current window (L [optional] = "include flags")
  37. # %= : expand to fill all space (used here to make remaining content flush right)
  38. # %C : current time (12-hr; 24-hr is %c)
  39. # %a : am/pm (lowercase; uppercase is %A)
  40. # %Y : current year
  41. # - : hyphen character
  42. # %m : current month (0-padded; %M for "Jan" etc.)
  43. # - : hyphen character
  44. # %d : current date (0-padded)
  45.  
  46. # ------------------- Setup Default Windows
  47. screen -t main 0 bash
  48. screen -t ROOT 1 su -
  49. screen -t install 2 bash
  50. screen -t logfiles 3 bash ~/logfiles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement