-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
180 lines (151 loc) · 4.34 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
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
##
## .screenrc - Updated April, 22th 2008
## Written by Christian Lauf <[email protected]>
##
## Initial work done by: Stephan Schmieder <[email protected]>
## I used his work as a base for mine.
##
## Started using tmux, therefore I regularly forget this:
## Scrolling in screen with: Ctrl+a, [
########################################################
# #
# Basic shell and screen configuration #
# #
########################################################
##
## Scrollback buffer in lines
##
defscrollback 1000
##
## My shell
##
shell /bin/bash
##
## No copyright message
##
startup_message off
##
## Caption line
##
## resolves to:
## [hostname ][windowlist][month and day][time]
##
caption always "%{WB}%H %{kG}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kG}%?%+Lw%? %88=%{YR}%M%d %94=%{RY}%c%="
##
## Passwort protect my screen-session
##
## Don't know how to do this?
## 1. Ctrl + : this asks for a new password and puts it into the copybuffer
## 2. Ctrl+a ] puts this into the current window (use an empty textfile for example and your screen config)
## 3. Put the password parameter followed by the hash you got into your .screenrc (see below)
## 3. Ctrl+a [ followed by W (Shift+w) switches to copy mode and puts a word there,
## now your copybuffer doesn't contain the password anymore
#password fill-your-password-in-and-comment-out
##
## Nice window title for each new window
## resolves to: [user@host] screen
##
defhstatus "[$USER@^%H] screen"
##
## Automated Screensession configuration
## What programs are started where, if a new screensession is started.
##
#screen -t bash 0 bash
#screen -t bash 1 bash
#screen -t htop 2 htop
########################################################
# #
# Keybindings #
# #
########################################################
##
## Keybindings - Programs
##
## The bind key is activated by pressing ctrl+a + bindkey
## -t is the windowname
## The number is the windownumber in which the program will start
##
##
## To make the sudo commands work with your non-root user
## you need to have a appropriate sudoers file.
##
bind c screen -t bash 0 bash -l
bind n screen -t netstat 1 sudo watch netstat -pan
bind l screen -t lsof 2 sudo watch lsof -i
bind h screen -t htop 3 sudo htop
bind i screen -t icq 4 centerim --bind ip.ip.ip.ip
bind r screen -t irc 5 irssi -h chat.domain.tld
bind s screen -t silc 6 silc -h chat.domain.tld
##
## use F7 and F8 to cycle trough the windows
##
bindkey -k k7 prev
bindkey -k k8 next
##
## unbind some keys
##
#bind .
#bind ^\
#bind \\
#bind K
##
## Keybindings - screen regions
##
bind j focus down
bind k focus up
bind t focus top
bind b focus bottom
########################################################
# #
# Terminal configuration #
# #
########################################################
##
## Mouse support in screen
## See: http://arcknowledge.com/gnu.screen.user/2004-09/msg00022.html
##
term rxvt
##
## termcap stuff
##
#termcapinfo xterm ti@:te@
##
## make the cursor show up in red:
##
#termcapinfo linux "ve=\E[?25h\E[?17;0;64c"
## this makes screen work within rxvt on cygwin:
#termcapinfo rxvt-cygwin-native ti@:te@
##
## Add no utmp entry for new windows
##
deflogin off
########################################################
# #
# Bell and activity monitoring #
# #
########################################################
##
## show messages for 2 seconds
##
msgwait 2
##
## Define the time that all windows monitored for silence
## should wait before displaying a message.
##
#silencewait 15
##
## "activity in window #%n title: %t~"
##
#activity "%C -> %n%f %t activity!"
##
## pass on the "beep" (CTRL-G) by adding a '~':
##
#bell "%C -> %n%f %t bell!~"
##
## set colors for "messages" and "text marking"
##
#sorendition kG
##
## console-screensave, (!)doesn't lock(!)
##
# idle 180 eval "screen cmatrix" "idle 0"