-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscreenrc
75 lines (60 loc) · 1.29 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
# Define a session name
sessionname main
# Use 256 colors
term screen-256color
# Disable default Welcome message
startup_message off
# detach on hangup
autodetach on
# Use X scrolling mechanism
termcapinfo xterm* ti@:te@
# Mouse tracking allows to switch region focus by clicking
mousetrack on
# Fix for residual editor text
altscreen on
# Scrollback buffer
defscrollback 50000
# Make search case-insensitive
ignorecase on
## Informative statusbar
#hardstatus off
#hardstatus alwayslastline
#hardstatus string '%{= kG}[%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][ %{y}Load: %l %{g}][%{B} %d-%m %{W} %c %{g}]'
# Open several screens per session
screen -t SH 1
screen -t SH 2
screen -t SH 3
screen -t SH 4
screen 5
screen 6
screen 7
screen 8
screen -t MONITORING 9 sh -c "htop 2>/dev/null || top"
# Start window numbering at 1 not 0
select 0
bind c screen 1
bind 0 select 10
# Layout
layout autosave on
layout new one
select 1
layout save one
layout new split
select 1
split -v
resize +20
focus
select 4
split
focus
select 5
focus
layout save split
# Select the default layout
layout attach one
layout select one
# Navigating regions with Ctrl-arrows
bindkey "^[[1;5D" focus left # Left
bindkey "^[[1;5C" focus # Right
bindkey "^[[1;5A" focus up # Up
bindkey "^[[1;5B" focus down # Down