Screen is one of the best programs ever made for linux. This is my current hardstatus line, always a work in progress. My .screenrc:
backtick 1 1 1 $HOME/.screen_custom/sys_status.sh
hardstatus on
hardstatus alwayslastline
hardstatus string '%{= kg}[ %{y}%H %{g}][%= %{=kw}%?%-Lw%?%{y}(%{W}%n*%f%t%?(%u)%?%{y})%{g}%?%+Lw%?%?%= %{g}][%{y}%Y-%m-%d %{W}%c %{g}]'
caption always "%{wK} %1`"
hardstatus on
hardstatus alwayslastline
hardstatus string '%{= kg}[ %{y}%H %{g}][%= %{=kw}%?%-Lw%?%{y}(%{W}%n*%f%t%?(%u)%?%{y})%{g}%?%+Lw%?%?%= %{g}][%{y}%Y-%m-%d %{W}%c %{g}]'
caption always "%{wK} %1`"
#!/bin/sh
uptime | sed 's/.*average: //'
uptime | sed 's/.*average: //'
Although, it's a bit redundant with multiple windows open.
I also need to see if there's a way to put the -H 1000000 option I like to use in my .screenrc instead of specifying it when being invoked.
No comments:
Post a Comment