-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
149 lines (125 loc) · 5.3 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
#
# ~/.screenrc
#
# Collected by Remco B. Brink <[email protected]>
#
# Contains various tidbits and snippets from a large amount of
# screen configurations found on various places on the net.
#
# ChangeLog:
# 20051117 - Added changelog and turned off creation of new
# new shell on default.
# 20060815 - Turn off autostarting of programs
# 20061112 - Added wormulon to the statusbar
#
# Sets whether screen will automatically detach upon hangup, which
# saves all your running programs until they are resumed with a
# screen -r command.
autodetach on
# This affects the copying of text regions with the `C-a ['command.
crlf off
# Same as the login command except that the default setting for new
# windows is changed.
deflogin off
# If set to "on", screen will append to the "hardcopy.n"files
# created by the command "C-a h", otherwise these files are
# overwritten each time. Default is `off'.
hardcopy_append on
# Select whether you want to see the copyright notice during startup.
startup_message off
# Same as the scrollback command except that the default setting
# for new windows is changed.
defscrollback 10000
# Define the time that all windows monitored for silence should
# wait before displaying a message.
silencewait 15
# My Shell - the one and only ;)
shell -zsh
# This will only work in screen newer than 4.00.x
# After 42 seconds inactivity, it starts »cmatrix«
# CMatrix - a console screensaver by Chris Allegretta chrisa(at)asty.org
# (<http://www.asty.org/cmatrix/>)
#idle 420 eval "screen cmatrix -f -o -u 10" "idle 0"
# Binds and programs
#
# Start these programs whenever screen is started
#screen -h 0 -t irc 1 irssi
#screen -t mail 2 mutt
# Bind C-M to starting up a mail client
bind M screen -t 'mail' 2 /usr/bin/mutt -y
# Shows a scrolling 'Matrix' like screen (<//www.asty.org/cmatrix>)
bind L screen cmatrix -f -o -u 10
# A fast way to lock the current screen.
bind X lockscreen
# Make shift-PgUp and shift-PgDn behave like in xterm
bindkey "^[[5;2~" eval "copy" "stuff ^b"
bindkey -m "^[[5;2~" stuff ^b
bindkey -m "^[[6;2~" stuff ^f
# Window numbering starts at 1 instead of 0
#bind c screen 1
#bind 0 screen 10
# Trying a different prev/next approach
bindkey "^h" prev
bindkey "^j" next
bindkey "^[[D" eval prev
bindkey "^[[C" eval next
bindkey "^[[1;5D" prev # Ctrl-Left
bindkey "^[[1;5C" next # Ctrl-Right
bindkey "^[[27;6;9~" prev # Ctrl-Shift-Tab
bindkey "^[[27;5;9~" next # Ctrl-Tab
bindkey "@\UF702" prev # Cmd-Left
bindkey "@\UF703" next # Cmd-Right
bindkey "^[[1;7C" prev # Ctrl + Alt + Left (gnome-terminal)
bindkey "^[[1;7D" next # Ctrl + Alt + Right (gnome-terminal)
bindkey "^[^[[D" prev # Ctrl + Alt + Left (PuTTy)
bindkey "^[^[[C" next # Ctrl + Alt + Right (PuTTy)
# Change the way screen does highlighting for text marking
sorendition u dw
sorendition 02 40 # green on black
sorendition 10 99 # default
#sorendition 02 34 # yellow on blue
#sorendition rw # red on white
#sorendition kG # black on bold green
# Other hardstatus examples:
#hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
# Windowlist with hostname
#hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[%H]"
# Windowlist with load
#hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[Load: %l]"
# Windowlist with clock
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[%l] [%c, %d/%m/%y]"
# Windowlist with backticks
#hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[ip: %1`]"
#backtick 1 1200 1200 ipadr
# Windowlist with hostname, centered tabs and redmarked active windows
#hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
# Windowlist with hostname, centered tabs, redmarked active windows and loadavg
#hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}'
# We want bandwidth stats in the statusline, as well as a clock
# using Wormulon <url:http://www.wormulon.net/projects/wormulon>
#backtick 1 0 0 /usr/local/bin/wormulon -i eth0
#hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=[%{bw}%1`] - [%c, %d/%m/%y]"
#hardstatus alwayslastline
#hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}'
defbce on
defscrollback 5000
defmonitor off
shelltitle '$ | zsh'
# C-a is magic-beginning-of-line, so we go for C-\\ instead
#escape \\\\
# Make sure a single unresponsive window doesn't kill everything
nonblock on
# Message shown when session gets power detached
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
# Sets the visual bell setting for this window.
vbell off
#vbell on
#vbell_msg " *beep* "
# Pass on the "beep" (CTRL-G) by adding a "~":
bell "bell in %n (%t) [%w:%s]~"
# Notify us when something happens in the background
activity "activity in %n (%t) [%w:%s]~"
# Make sure we start our journey in the first window
select 0
# turn off XON/XOFF, wow. seriously. whys it default, ick.
defflow off