-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreenrc
More file actions
277 lines (234 loc) · 9.57 KB
/
screenrc
File metadata and controls
277 lines (234 loc) · 9.57 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
# ==============================================================================
# SCREEN SETTINGS
# ==============================================================================
# ESCAPE - the COMMAND CHARACTER
# ===============================================================
escape ^aa # default
# escape ^pp # suggested binding for emacs users
# PASSWORD
# ===============================================================
# This commands sets the *internal* password for the screen session.
# WARNING!! If this is set then a "lock" command will only let you in to the
# session after you enter the user's account password and then *also*
# the internal password for that session. This gives additional safety but,
# if you forget the internal password then you cannot resume your session.
# Use :password to generate a password
# password ODSJQf.4IJN7E # "1234"
# VARIABLES
# ===============================================================
# No annoying audible bell, using "visual bell"
vbell on # default: off
vbell_msg " -- Bell,Bell!! -- " # default: "Wuff,Wuff!!"
# bell "%C -> %n%f %t bell!~"
# activity 'Activity in window %n' # default
#
# There are two kinds of messages: "activity" and "bell"
# They are also the names of the commands that set the
# respective messages. In every message there can be "meta
# strings" which are replaced by values. A meta string starts
# with a percent sign and is then followed by one
# of the following letters: aAcCdDfFhHlmMnstuwWyY
# The meta strings usually refer to the current
# date and time or to a window title or number.
# There are also some specials like embedded branches (with %?),
# color codes (with %{xy}) and padding (with %=, %<, %>).
# you can find their description in the manual in section
# "STRING ESCAPES":
# %% percent sign (the escape character itself)
# %a either 'am' or 'pm' - according to the current time
# %A either 'AM' or 'PM' - according to the current time
# %c current time HH:MM in 24h format
# %C current time HH:MM in 12h format
# %d day number - number of current day
# %D Day's name - the weekday name of the current day
# %f flags of the window
# %F sets %? to true if the window has the focus
# %h hardstatus of the window
# %H hostname of the system
# %l current load of the system
# %m month number
# %M month name
# %n window number
# %s seconds
# %t window title
# %u all other users on this window
# %w all window numbers and names.
# %-w all window numbers up to the current window
# %+w all window numbers after the current window
# %W all window numbers and names except the current one
# %y last two digits of the year number
# %Y full year number
#
# Older versions of screen used a single '%' character
# to display window titles - but since version 3.7 this is
# obsoleted by '%n' and it will vanish in future releases.
# So please update your screenrc to meet this convention!
# Automatically detach on hangup.
autodetach on # default: on
# Don't display the copyright page
startup_message off # default: on
# Uses nethack-style messages
nethack off # default: off
# Affects the copying of text regions
crlf off # default: off
# Enable/disable multiuser mode. Standard screen operation is singleuser.
# In multiuser mode the commands acladd, aclchg, aclgrp and acldel can be used
# to enable (and disable) other user accessing this screen session.
# Requires suid-root.
multiuser off
# Change default scrollback value for new windows
defscrollback 10000 # default: 100
# Define the time that all windows monitored for silence should
# wait before displaying a message. Default 30 seconds.
silencewait 15 # default: 30
# bufferfile: The file to use for commands
# "readbuf" ('<') and "writebuf" ('>'):
bufferfile $HOME/.screen_exchange
#
# hardcopydir: The directory which contains all hardcopies.
hardcopydir ~/.hardcopy
hardcopydir ~/.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.
# If begins with a '-' character, the shell will be started as a login shell.
shell bash
# shell bash
# shell ksh
# shell -$SHELL
# shellaka '> |tcsh'
shelltitle '$ |bash'
# emulate .logout message
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
# caption always " %w --- %c:%s"
caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
# advertise hardstatus support to $TERMCAP
termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
# set every new windows hardstatus line to something descriptive
defhstatus "screen: ^En (^Et)"
# don't kill window after the process died
# zombie "^["
# zombie z
# 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 outputns also need this
# termcapinfo rxvt C8
# STATUS
# ==============================================================
# hardstatus alwayslastline "%{kG}%?%- %u %60=%{rk} %H %68=%{yk} %d.%m.%Y %88=%{gk} %c %= %?%+Lw%?"
# backtick 1 1 6 /usr/bin/mocp --format "%song"
# backtick 2 1 6 /usr/bin/mocp --format "%album"
# backtick 3 1 6 /usr/bin/mocp --format "%artist"
# backtick 4 1 1 /usr/bin/mocp --format "%tl"
# backtick 5 2 2 /home/andreas/bin/total-space
# backtick 6 30 30 /bin/cat /etc/debian_version
# backtick 7 30 30 /bin/uname -sr
# backtick 8 1 1 /home/andreas/bin/ip_r
hardstatus alwayslastline "%{fB}[%{fB}%4`] %{fY}%3`%{fB} - %{fg}%1` %{fg}(%2`) %{fb}load: %l %{fY} %d.%m.%Y %{fb} ( %{fG}%c %{fb})%="
# hardstatus alwayslastline "%{kb}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{ky}%?%+Lw%?"
# hardstatus alwayslastline "%{bw}%1`%= %50=%{rk} %H %73=%{yk} %d.%m.%Y %88=%{gk} %c %="
# hardstatus alwayslastline "%20=%{bw} %1` %50=%{rw} %H %73=%{yk} %d.%m.%Y %88=%{gk} %c %="
# CAPTION
# ==============================================================
# a "caption" is another line which can show information -
# in addition to the hardstatus line.
# caption always "%{kG}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kG}%?%+Lw%?" # prev defauld
caption always "%{Bk} %?%-Lw%? %{yk} %n*%f %t%?(%u)%? %{Bk} %?%+Lw%?"
# backtick id lifespan autorefresh command [args]
# backtick 1 10 1 /usr/local/bin/battstat
# "sorendition": set the colors for
# the "messages" and "text marking"
# (ie text you mark in copy mode):
#
sorendition bG # default!
# sorendition 02 40 # green on black
# sorendition 02 34 # yellow on blue
# sorendition rw # red on white
# sorendition fG # black on bold green
# KEYBINDINGS
# ==============================================================
# The "bind" command assign keys to (internal) commands
# SCREEN checks all the keys you type; you type the key
# which is known as the "command character" then SCREEN
# eats this key, too, and checks whether this key is
# "bound" to a command. If so then SCREEN will execute it.
#
# The command "bind" allows you to chose which keys
# will be assigned to the commands.
#
# Some commands are bound to several keys -
# usually to both some letter and its corresponding
# control key combination, eg the command
# "(create) screen" is bound to both 'c' and '^C'.
#
# The following list shows the default bindings:
#
# break ^B b
# clear C
# colon :
# copy ^[ [
# detach ^D d
# digraph ^V
# displays *
# dumptermcap .
# fit F
# flow ^F f
# focus ^I
# hardcopy h
# help ?
# history { }
# info i
# kill K k
# lastmsg ^M m
# license ,
# log H
# login L
# meta x
# monitor M
# next ^@ ^N sp n
# number N
# onndkey -k k8 next
# F11 and F12
bindkey -k F1 prev
bindkey -k F2 next
# STARTUP SCREENS
# ===============================================================
# Defines the time screen delays a new message when one message
# is currently displayed. The default is 1 second.
# msgminwait 2
# Time a message is displayed if screen is not disturbed by
# other activity. The dafault is 5 seconds:
# msgwait 2
# Briefly show the version number of this starting
# screen session - but only for *one* second:
# msgwait 1
# version
defbce on
term screen-bce
# Welcome the user:
#echo "welcome :-)"
#echo "I love you today."
msgwait 10
# Uncomment one/some following lines to automatically let
# SCREEN start some programs in the given window numbers:
screen -t EMACS 0 emacs -nw -f server-start -D --debug-init
screen -t MOCP 1 mocp
screen -t IRSSI 2 ssh xxtjaxx@ein-elch.de
# screen -t TORRENT 5 rtorrent
# Set the environment variable var to value string. If only var is specified,
# you'll be prompted to enter a value. If no parameters are specified,
# you'll be prompted for both variable and value. The environment is
# inherited by all subsequently forked shells.
# setenv PROMPT_COMMAND 'echo -n -e "\033k\033\134"'
# Don't you want to start programs which need a DISPLAY ?
setenv DISPLAY ':0'
# /usr/bin/battstat for displaying battery-sta