Skip to content

Instantly share code, notes, and snippets.

@jiananlu
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jiananlu/9522946 to your computer and use it in GitHub Desktop.
Save jiananlu/9522946 to your computer and use it in GitHub Desktop.

enhance your screen

Create a file named .screenrc under your home folder.

# Here comes the pain...

 caption always "%{=b dw}:%{-b dw}:%{=b dk}[ %{-b dw}%{-b dg}$USER%{-b dw}@%{-b dg}%H %{=b dk}] [ %= %?%{-b dg}%-Lw%?%{+b dk}(%{+b dw}%n:%t%{+b dk})%?(%u)%?%{-b dw}%?%{-b dg}%+Lw%? %{=b dk}]%{-b dw}:%{+b dw}:"

backtick 2 5 5 $HOME/scripts/meminfo

 hardstatus alwayslastline "%{+b dw}:%{-b dw}:%{+b dk}[%{-b dg} %0C:%s%a %{=b dk}]-[   %{-b dw}Load%{+b dk}:%{-b dg}%l %{+b dk}] [%{-b dg}%2`%{+b dk}] %=[ %{-b dg}%1`%{=b dk} ]%{-b dw}:%{+b dw}:%<"
 
 sorendition "-b dw"

And create another file named $HOME/scripts/meminfo with the following content:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment