-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
111 lines (88 loc) · 2.93 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
## Screen config
## Created: Late 2007
## Last Modified: 21:05:22 IST, 20/09/2011
## Hardstatus stuff
#change the hardstatus settings to give an window list at the bottom of the
#screen, with the time and date and with the current window highlighted
#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 1 0 0 $HOME/scripts/screen/netinfo 5 eth0
#backtick 2 2 2 $HOME/scripts/screen/meminfo
#backtick 3 60 60 $HOME/scripts/screen/uptime
#hardstatus alwayslastline "%{+b dw}:%{-b dw}:%{+b dk}[%{-b dg} %0C:%s%a %{=b dk}]-[ %{-b dg}%D %d %M %Y %{+b dk}] [ %{-b dw}%3`%{+b dk}/up | %{-b dg}%l %{+b dk}] [%{-b dg}%2`%{+b dk}] %=[ %{-b dg}%1`%{=b dk} ]%{-b dw}:%{+b dw}:%<"
#### without those scripts :-)
#hardstatus alwayslastline "%{+b dw}:%{-b dw}:%{+b dk}[%{-b dg} %0C:%s%a %{=b dk}]-[ %{-b dg}%D %d %M %Y %{+b dk}] %=[ %{-b dg}%1`%{=b dk} ]%{-b dw}:%{+b dw}:%<"
hardstatus alwayslastline "%{=b dw}:%{-b dw}:%{=b dk}[%{-b dg} %0C:%s%a %{=b dk}]-[ %= %?%{-b dg}%-Lw%?%{+b dk}(%{+b dw}%n:%t%{+b dk})%?(%u)%?%{-b dw}%?%{-b dg}%+Lw%? %{=b dk}]:%{+b dw}:"
sorendition "-b dw"
## Turn off visual bell. This annoys !
vbell off
## Replace C-Aa with C-Bb
escape ^Bb
## Big scrolling buffer
defscrollback 10000
## detach on hangup
autodetach on
## don't display the copyright page
startup_message off
## emulate .logout message
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
## advertise hardstatus support to $TERMCAP
# termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
## make the shell in every window a login shell
# shell -$SHELL
## the shell title should display the job running
shelltitle "$ |shell"
## set every new windows hardstatus line to something descriptive
defhstatus "screen: ^En (^Et)"
## don't kill window after the process died
# zombie "^["
## enable support for the "alternate screen" capability in all windows. remove
## the vim and htop contents
altscreen on
## window monitoring
#defmonitor on
#activity "Window %n pings!"
#################
##
## keybindings
##
##remove some stupid / dangerous key bindings
bind k
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h
##make them better
bind 'K' kill
bind 'I' login on
bind 'O' login off
bind '}' history
bindkey ^[[c next # shift-right to move right
bindkey ^[[d prev # shift-left to move left
## Yet another hack:
## Prepend/append register [/] to the paste if ^a^] is pressed.
## This lets me have autoindent mode in vi.
# register [ "\033:se noai\015a"
# register ] "\033:se ai\015a"
# bind ^] paste [.]
#################
##
## default windows
##
screen 0
screen 1
#screen -M -t root 7 su -
#screen -t mail 8 mutt
#screen -t tweet 9 ttytter
select 0
# screen -t 40 2 rlogin server
#
# bind = resize =
# bind + resize +1
# bind - resize -1
# bind _ resize max
##
## defnonblock 1
## blankerprg rain -d 100
## idle 30 blanker