-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscreenrc
169 lines (134 loc) · 6.04 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
# ------------------------------------------------------------------------------
# SCREEN SETTINGS
# ------------------------------------------------------------------------------
startup_message off # don't display the copyright page
#nethack on
defutf8 on # utf-8 encoding
#defflow on # will force screen to process ^S/^Q
autodetach on # detach on hangup
vbell on # turn visual bell on
vbell_msg " Wuff ---- Wuff!! "
bell_msg "bell: %n (%t) [%w:%s]^G"
defscrollback 65535 # define a bigger scrollback
nonblock on # don't block everything, waiting for an unresponsive window
# bufferfile $HOME/.screenex # the file to use for "readbuf" ('<') and "writebuf" ('>'):
shell -$SHELL # make the shell in every window a login shell
deflogin on # log new screen windows in utmp
# emulate .logout message
pow_detach_msg "Screen session of $LOGNAME $:cr:$:nl:ended."
term xterm-256color # Enable 256 colors
#termcapinfo rxvt* ti@:te@:XT # improve mouse scrolling,
#
#
## Termcap, fix 256 colors
#termcapinfo rxvt 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
#termcapinfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
#termcapinfo rxvt-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
terminfo rxvt-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
altscreen on # and text will go into terminal scrollback buffer
# ------------------------------------------------------------------------------
# SCREEN KEYBINDINGS
# ------------------------------------------------------------------------------
#bind ^a windowlist -b
# Remove some stupid / dangerous key bindings
#bind '^k'
#bind 'L'
#bind '^\'
#bind .
#bind ^h
#bind h
# Make them better
#bind '\\' quit
#bind 'K' kill
#bind 'I' login on
#bind 'O' login off
#bind '}' history
# Add toggle bindings for the statusbar
bind ^f eval "hardstatus ignore"
bind f eval "hardstatus alwayslastline"
#bind 'R' colon "screen -ln rlogin faui -8^b^b^b"
#bind 'P' colon "^p"
# bind = resize =
# bind + resize +1
# bind - resize -1
# bind _ resize max
# escape ""
escape "^Aa"
#bindkey \033^b break
# An example of a "screen scraper" which will launch urlview on the current
# screen window
#bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
# on Debian backspace should send char `\177':
#bindkey -k kb stuff "\177"
# Bind arrow keys
# to know signals, try cat > /dev/null and press keys
#bindkey ^[[D prev # Ctl-left, prev window
#bindkey ^[[C next # Ctl-right, next window
bindkey ^[Od prev # Ctl-left, prev window
bindkey ^[Oc next # Ctl-right, next window
bindkey ^T screen # Ctl-t, new window
#bindkey ^W kill # Ctl-w, kill window
bindkey -k k2 title # F2, rename
# ------------------------------------------------------------------------------
# TERMINAL SETTINGS
# ------------------------------------------------------------------------------
#caption always "%-Lw%{+u wk}%50>%n%f* %t%{-}%+Lw%<"
#backtick 42 60 30 /home/pierre/scripts/checkimap.pl
# caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
## alternative caption, gives window list, LOGNAME and current date:
# caption always "%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw %=%{mk}@%H %{yk}%D %{ck}%M%{wk} %{ck}%d %{gk}%c"
# hardstatus alwaysignore
# hardstatus alwayslastline "%Lw"
#--------------
# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 dl=5\E[M
# turn sending of screen messages to hardstatus off
#hardstatus off
hardstatus on
# Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
# use this for the hard status string
#hardstatus string "%h%? users: %u%?"
# An alternative hardstatus to display a bar at the bottom listing the
# windownames and highlighting the current windowname in blue. (This is only
# enabled if there is no hardstatus setting for your terminal)
#
#hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
# version d'avant, allégée avec seulement les window en cours et celle courante en jaune
# et fond bleu
#hardstatus alwayslastline "%{= BY}%-Lw%{= YB}%50>%n%f* %t%{= BY}%+Lw%<"
# nouvelle version :
# heure (avec secondes): %{b kB}%{b kG}%c:%s%{b kB}
# nom de la machine en rouge, load de la machine
# puis fenetres avec celle courante en jaune, le tout en fond bleu
hardstatus alwayslastline "%{b kB}%H %{b kB}%{b kR}%l%{b kB} %{b kB}%{rs Y}%-Lw%{b kB}%50>%n%{b kB}%f%{b kB} %t%{b kB}%+Lw%<"
#hardstatus alwayslastline "%{+b}%c%{kg}%="
#hardstatus alwayslastline " %{= kK}%-w%{+b W}%n %t%{-}%+w%=%{+b W}%h %{= dd}"
# sorendition Wk # status: normal text on black bg
# # [ hostname ][(0*$ zsh) (1-$ emacs)][ hostname ]
# hardstatus alwayslastline "%{G}[ %{Y}%H %{G}][%{w}%?%-Lw%?%{G}(%{W}%n*%f %t%?(%u)%?%{G})%{w}%?%+Lw%?%?%= %{G}][%{Y} %H %{G}]"
# set these terminals up to be 'optimal' instead of vt100
termcapinfo xterm*|linux*|rxvt*|Eterm* OP
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
# (This fixes the "Aborted because of window size change" konsole symptoms found
# in bug #134198)
# termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
# Do not use xterms alternate window buffer (won't add lines to scrollback bfr)
#termcapinfo xterm|xterms|xs ti=\E7\E[?47l
# See history with shift+Pg Up
termcapinfo xterm|xterms|xs|rxvt ti@:te@
# termcapinfo xterm*|linux*|rxvt*|Eterm* ti@:te@
# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------
# Define new windows
#screen -t irc 1 weechat-temp
#screen -t rss 2 newsbeuter
#screen -t mpd 3 ncmpcpp
#screen -t dl 4 rtor
#screen -t mt 5 mutt
sorendition =s WB
#sorendition "=b ky"
msgwait 3
bell "^GBell in window %"