-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
152 lines (125 loc) · 3.48 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
# ------------------------------------------------------------------------------
# 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 off
vbell on
vbell_msg " Wuff ---- Wuff!! "
# define a bigger scrollback, default is 100 lines
defscrollback 1024
# ------------------------------------------------------------------------------
# TERMINAL SETTINGS
# ------------------------------------------------------------------------------
# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 dl=5\E[M
# Set terminal
term screen-256color
# Get IP Address
backtick 101 600 600 hostname -I
# Get volume level
#backtick 102 1 1 bash /usr/share/i3blocks/volume
# Get battery status
#backtick 103 1 1 bash /path/to/battery/script
# Set status bar
hardstatus off
hardstatus alwayslastline
hardstatus string '%{= dG}[ %{d}%H %{b}| %{G}%101`%{d}%{g}][%= %{= dw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][ %{d}%103`%{d}%D %M-%d %{d}%{b}| %{W}%C%a %{g}]'
# With volume
#hardstatus string '%{= dG}[ %{d}%H %{b}| %{G}%101`%{d}%{g}][%= %{= dw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{d} Vol: %102` %{b}| %{d}%103`%{d}%D %M-%d %{d}%{b}| %{W}%C%a %{g}]'
# 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
# set these terminals up to be 'optimal' instead of vt100
termcapinfo xterm*|linux*|rxvt*|Eterm* OP
#
# Enable non-blocking mode to better cope with flaky ssh connections.
defnonblock 5
# Clear screen after exiting vim
altscreen on
# Watch for mouse clicks. Will focus on split where mouse was clicked.
defmousetrack on
mousetrack on
# Set bar color for splits
rendition so wk
# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------
# Caption text. Highlight current window's status on split.
caption string '%?%F%{.K.}%?%3n %t%? [%h]%?'
# Open default programs
screen -t "BASH" 0 IRC
screen -t "BASH" 1 bash
screen -t "BASH" 2 bash
screen -t "BASH" 3 CAL
screen -t "BASH" 4 MAIL
# Shell window group
#screen -t "DEV" 8 //group
#select 8
#screen -t "BASH" 10 bash
#screen -t "BASH" 11 bash
#screen -t "BASH" 12 bash
#screen -t "BASH" 13 bash
#screen -t "BASH" 14 bash
#screen -t "BASH" 15 bash
#select 0
# Monitoring window group
#screen -t "MON" 9 //group
#select 9
#screen -t "HTOP" 20 htop
#screen -t "DMESG" 21 bash
#screen -t "JRN" 22 bash
#screen -t "LOGS" 23 bash
#screen -t "LOGS" 24 bash
#screen -t "LOGS" 25 bash
# Default to window 1
select 1
# Layouts
layout new main
select 1
layout autosave on
layout new multi
select 10
split -v
split -v
resize -10%
focus right
select 11
resize +5%
focus right
select 12
split
focus down
select 13
focus left
#layout new vsplit
#select 14
#split
#focus down
#select 15
#focus up
layout new hsplit
select 1
split -v
focus right
resize -10%
select 2
focus left
layout attach main
layout select main
# Cycle through windows
# Ctrl-a [h,j,k,l,t,b]
bind h focus left
bind j focus next
bind k focus prev
bind l focus right
# Cycle through layouts
# Ctrl-j j
bind -c layoutN j layout next
bindkey "^J" command -c layoutN
# Ctrl-k k
bind -c layoutP k layout prev
bindkey "^K" command -c layoutP