forked from piranha/conf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.screenrc
More file actions
181 lines (156 loc) · 6.43 KB
/
.screenrc
File metadata and controls
181 lines (156 loc) · 6.43 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# (c) piranha 2003-2006
# thx to dym and Michael Prokop
# Text Tools rule! :-)
unsetenv DISPLAY
# setenv DISPLAY 'localhost:0.0'
# ===============================================================
# STARTUP of programs in an extra window:
# ===============================================================
# Uncomment one/some following lines to automatically let
# SCREEN start some programs in the given window numbers:
# screen -t mail 0 mutt
# screen -t zsh 0 zsh
# screen -t vim 1 vim
# screen -t google 2 links http://www.google.com
# screen -t slrn 3 slrn
# screen -t www 4 $BROWSER http://www.michael-prokop.at/
# ===============================================================
# VARIABLES - Boolean values (on/off)
# ===============================================================
# detach on hangup
autodetach on # default: on
crlf off # default: off
deflogin off # default: on
# defsilence off # default: off
# hardcopy_append on # default: off
# nethack on # default: off
# don't display the copyright page
startup_message off # default: on
# no annoying bell, please
vbell off
defnonblock 1
# ===============================================================
# xterm tweaks
# ===============================================================
# xterm understands both im/ic and doesn't have a status line.
# Note: Do not specify im and ic in the real termcap/info file as
# some programs (e.g. vi) will not work anymore.
# termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
# terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
# 80/132 column switching must be enabled for ^AW to work
# change init sequence to not switch width
# termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
# Make the output buffer large for (fast) xterms.
# termcapinfo xterm* OL=10000
# termcapinfo xterm* OL=100
# tell screen that xterm can switch to dark background and has function
# keys.
# termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
# termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
# termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
# special xterm hardstatus: use the window title.
# termcapinfo xterm 'hs:ts=\E]4;:fs=\007:ds=\E]2;screen\007'
#terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
# termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
# emulate part of the 'K' charset
# termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
# xterm-52 tweaks:
# - uses background color for delete operations
# termcapinfo xterm* be
# termcap xterm 'AF=\E[3%dm:AB=\E[4%dm'
# terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
# Matthias Kopfermann <matthias_kopfermann@gmx.de> [020222]
# make the cursor show up in red:
# termcapinfo linux "ve=\E[?25h\E[?17;0;64c" # red
# ===============================================================
# VARIABLES - Number values
# ===============================================================
defscrollback 1000 # default: 100
msgminwait 3 # default: 1
silencewait 15 # default: 30
# ===============================================================
# VARIABLES - Paths and Files (esp. programs)
# ===============================================================
# bufferfile: The file to use for commands
# "readbuf" ('<') and "writebuf" ('>'):
bufferfile $HOME/.screen_exchange
# hardcopydir: The directory which contains all hardcopies.
hardcopydir $HOME/.screen
# shell: Default process started in screen's windows.
# Makes it possible to use a different shell inside screen
# than is set as the default login shell. Halleluja! :-)
# shell zsh
# shell bash
# shell ksh
# ===============================================================
# VARIABLES - Strings
# ===============================================================
#
# some notes on COLOR before explaining its use in
# the commands caption, hardstatus, and sorendition.
#
# COLOR: colors codes are combinations of
# [attribute modifier] [color description]
# see the manual, section "STRING ESCAPES".
#
# Color table:
# 0 Black . leave color unchanged
# 1 Red b blue
# 2 Green c cyan
# 3 Brown / yellow d default color
# 4 Blue g green b bold
# 5 Purple k blacK B blinking
# 6 Cyan m magenta d dim
# 7 White r red r reverse
# 8 unused/illegal w white s standout
# 9 transparent y yellow u underline
hardstatus alwayslastline "%{ck}%H %{gk}| %{+u rk}Load: %l%{-u gk} | %{wk}%c %{yk}%d.%m.%Y %{gk}| %{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
# ===============================================================
# Messages
# ===============================================================
activity "activity in %n (%t) [%C]~"
# ===============================================================
# Key bindings
# ===============================================================
# 040126 To be able to select windows with n > 9 ->
# press "C-a - #" instead of just "C-a #"
bind - command -c select_1n
bind -c select_1n 0 select 10
bind -c select_1n 1 select 11
bind -c select_1n 2 select 12
bind -c select_1n 3 select 13
bind -c select_1n 4 select 14
bind -c select_1n 5 select 15
bind -c select_1n 6 select 16
bind -c select_1n 7 select 17
bind -c select_1n 8 select 18
bind -c select_1n 9 select 19
bind -c select_1n - command -c select_2n
bind -c select_2n 0 select 20
bind -c select_2n 1 select 21
bind -c select_2n 2 select 22
bind -c select_2n 3 select 23
bind -c select_2n 4 select 24
bind -c select_2n 5 select 25
bind -c select_2n 6 select 26
bind -c select_2n 7 select 27
bind -c select_2n 8 select 28
bind -c select_2n 9 select 29
bind -c select_2n - select -
# ==============================================================
# BIND and the Services:
# ==============================================================
# remove some stupid / dangerous key bindings
# bind k
# bind ^k
# bind .
# bind ^\
# bind \\
# bind s
# bind h
bind h hardcopy
# make them better
bind 'K' kill
bind 'I' login on
bind 'O' login off
# EOF vim: ts=8 et nowrap