From 3077bdbafab356a5392e1e7bf4c81023dbc38eff Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Wed, 20 Jun 2018 15:05:26 +0300 Subject: [PATCH] added screenrc config for remote servers. --- screen/simple-remote-server.screenrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 screen/simple-remote-server.screenrc diff --git a/screen/simple-remote-server.screenrc b/screen/simple-remote-server.screenrc new file mode 100644 index 0000000..0e42f8f --- /dev/null +++ b/screen/simple-remote-server.screenrc @@ -0,0 +1,17 @@ +# Including common settings +source ~/.dotfiles/screen/common.screenrc + +# Creating default windows +screen -t shell +screen -t root1 sudo -i +screen -t root2 sudo -i + +# Selecting first window +select 0 + +# Backtick commands to output in the hardstatus +backtick 2 10 10 sh -c '~/.dotfiles/screen/backticks/loadavg.sh' +backtick 3 10 10 sh -c '~/.dotfiles/screen/backticks/memory.sh' + +hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][ %1` ][ %2` ][ %3` ][%{B} %d-%m-%Y %{W}%c %{g}]' +