forked from StarlitGhost/screen-cpu-mem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenrc.txt
29 lines (24 loc) · 867 Bytes
/
screenrc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
autodetach on
startup_message off
defscrollback 10000
altscreen on # clear screen after closing some programs
defflow auto
shell -bash
defutf8 on
vbell off
shelltitle '$ |bash'
# backticks to display information in the statusbar
backtick 1 0 0 /usr/local/bin/screen-mem-usage
backtick 2 0 0 /usr/local/bin/screen-cpu-usage
# colors
#term screen-256color
terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# statusbar
hardstatus on
hardstatus alwayslastline
hardstatus string '%{= G}[%{g}host:%{G}%H]%{g}[%= %{= w}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{y}cpu:%{Y}%2`%%%{b}mem:%{B}%1`%{r}load:%{R}%l%{g}][%{c}%m-%d~%{C}%c:%s%{g}]'
# warning of activity
activity '%c activity -> %n%f %t'
# left + right arrow key meta key mods
bindkey '^[Od' prev # change window with ctrl-left
bindkey '^[Oc' next # change window with ctrl-right