-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot-screenrc
49 lines (41 loc) · 1.5 KB
/
dot-screenrc
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# file: .screenrc
#
activity "*** ACTIVITY IN %n (%t) [%w:%s]~ ***"-
# if screen dies, detach so our session will remain
autodetach on # Default on
deflogin on
defscrollback 4096 # Default 100
# I hate control sequences
#escape ``
msgwait 3
setenv DISPLAY ':0'
shelltitle "$ |bash"
# when monitoring for silence, how long should screen wait before notifying?
silencewait 15 # Default 30
startup_message off
vbell on
vbell_msg " Ding! "
caption always "%{gk}[ %{g}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{w}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{b} %Y-%m-%d %{w}%c %{g}]"
# "` shift-r" gets a root shell with current environment whose title is the
# current running command or just #
bind R screen -t '# |# ' su
# [ hostname ][ 0-$ window (1*$ current window) ][ YYYY-mm-dd HH:ss ]
caption always "%{gk}[ %{g}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{w}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{b} %Y-%m-%d %{w}%c %{g}]"
# Make bold mean bright
attrcolor b ".I"
# Make the default on new windows to remove all characters on erase (gets rid
# of bold, etc)
defbce "on"
# allows screen to use aterm's (or rxvt's) title bar for messages
termcapinfo rxvt 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
# allows screen to use 256 colors on xterm (actually gnome-terminal)
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
bind 1 select 0
bind 2 select 1
bind 3 select 2
bind 4 select 3
bind 5 select 4
bind 6 select 5
bind 7 select 6
bind 8 select 7
bind 9 select 8