-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.screenrc
184 lines (173 loc) · 6.54 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
181
182
183
#startup_message off
#vbell off
#verbose on
hardstatus alwayslastline
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
#hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m%{W}%c %{g}]'
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}'
#caption always “%{=b wK}%-w%{=b rY}%n %t%{-}% w %=%{= wB}%c%{-} ”
# Plus de lignes à scroller:
#defscrollback 200000
# => ne fonctionne pas, ça ne donne pas plus de lignes à scroller (0 dès qu'on a quitté un écran), et ça semble ralentir le bouzin.
# Galpé depuis https://unix.stackexchange.com/questions/40242/scroll-inside-screen-or-pause-output :
# Enable mouse scrolling and scroll bar history scrolling
termcapinfo xterm* ti@:te@
scrollback 100000
# => mis la même valeur pour le xterm lancé avec un screen dans ~/bin/demarrage; ainsi, c'est cohérent.
#------------------------------------------------------------------------------
# STARTUP SCREENS{{{
#------------------------------------------------------------------------------
screen -t stays 8 bash
screen -t postgres 7 bash
# screen -t psql_bdexplo 6 bash -c "psql -p 5432 -h localhost -d bdexplo"
screen -t psql_postgeol 6 bash -c "psql -p 5432 -h localhost -d postgeol"
screen -t taupe 5 htop -d 50
screen -t ROUTE 4 bash -c "su"
screen -t mc 3 mc
screen -t lanceur 2 bash
screen -t aarchives 1 bash
screen -t nnotes 0 bash # -c "vi nnotes.txt"
#screen -t mail 8 mutt
#screen -t daemon 9 tail -f /var/log/daemon.log
# }}}
# Tentatives pour faire fonctionner les raccourcis Ctrl-JK dans vim (vaines, tout commenté): {{{
#------------------------------------------------------------------------------
# Galpé depuis https://www.howtogeek.com/devops/define-a-great-gnu-screen-profile-using-screenrc/{{{
#------------------------------------------------------------------------------
# # General settings
# vbell on
# vbell_msg ' Ouaf, ouaf! '
# autodetach on
# startup_message off
# defscrollback 10000
# # Termcapinfo for xterm
# termcapinfo xterm* Z0=E[?3h:Z1=E[?3l:is=E[rE[mE[2JE[HE[?7hE[?1;4;6l # Do not resize window
# termcapinfo xterm* OL=1000 # Increase output buffer for speed
# # Remove various keyboard bindings
# bind x # Do not lock screen
# bind ^x # Idem
# bind h # Do not write out copy of screen to disk
# bind ^h # Idem
# bind ^ # Do not kill all windows/exit screen
# bind . # Disable dumptermcap
# # Add keyboard bindings
# bind } history
# bind k kill
# # }}}
# Copie du féchier global de ma Devuan:{{{
# # /etc/screenrc
#
# # $Id: screenrc,v 1.15 2003/10/08 11:39:03 zal Exp $
# #
# # /etc/screenrc
# #
# # This is the system wide screenrc.
# #
# # You can use this file to change the default behavior of screen system wide
# # or copy it to ~/.screenrc and use it as a starting point for your own
# # settings.
# #
# # Commands in this file are used to set options, bind screen functions to
# # keys, redefine terminal capabilities, and to automatically establish one or
# # more windows at the beginning of your screen session.
# #
# # This is not a comprehensive list of options, look at the screen manual for
# # details on everything that you can put in this file.
# #
#
# # ------------------------------------------------------------------------------
# # SCREEN SETTINGS
# # ------------------------------------------------------------------------------
#
# #startup_message off
# #nethack on
#
# #defflow on # will force screen to process ^S/^Q
# deflogin on
# #autodetach off
#
# # turn visual bell on
# vbell on
# # vbell_msg " Wuff ---- Wuff!! "
#
# # define a bigger scrollback, default is 100 lines
# # defscrollback 1024
#
# # ------------------------------------------------------------------------------
# # SCREEN KEYBINDINGS
# # ------------------------------------------------------------------------------
#
# # Remove some stupid / dangerous key bindings
bind ^k
bind ^K
bind ^j
bind ^J
# #bind L
# bind ^\
# # Make them better
# bind \\ quit
# bind K kill
# bind I login on
# bind O login off
# bind } history
#
# # 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"
#
# # ------------------------------------------------------------------------------
# # TERMINAL SETTINGS
# # ------------------------------------------------------------------------------
#
# # The vt100 description does not mention "dl". *sigh*
# termcapinfo vt100 dl=5\E[M
#
# # turn sending of screen messages to hardstatus off
# # hardstatus off
# # 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 lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
#
# # 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'
#
# # To get screen to add lines to xterm's scrollback buffer, uncomment the
# # following termcapinfo line which tells xterm to use the normal screen buffer
# # (which has scrollback), not the alternate screen buffer.
# #
# #termcapinfo xterm|xterms|xs|rxvt ti@:te@
#
# # Enable non-blocking mode to better cope with flaky ssh connections.
# defnonblock 5
#
# # ------------------------------------------------------------------------------
# # STARTUP SCREENS
# # ------------------------------------------------------------------------------
#
# # Example of automatically running some programs in windows on screen startup.
# #
# # The following will open top in the first window, an ssh session to monkey
# # in the next window, and then open mutt and tail in windows 8 and 9
# # respectively.
# #
# # screen top
# # screen -t monkey ssh monkey
# # screen -t mail 8 mutt
# # screen -t daemon 9 tail -f /var/log/daemon.log
#
#
# # }}}
# }}}