-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
57 lines (44 loc) · 1.59 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
# General configuration.
# =============================================================================
# Disable startup copyright page
startup_message off
# Disable visual bell.
vbell off
# Increase scrollback history.
defscrollback 10000
# Make SHELL work.
shell -$SHELL
# Make coloUr work properly.
# =============================================================================
term xterm
# allow bold colours. God knows why
attrcolor b ".I"
# Tell screen how to change colours.
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
#Erase BG with current BG colour.
defbce "on"
# Keybindings.
# =============================================================================
# F1 / F2 to switch screens
bindkey -k k1 prev
bindkey -k k2 next
# F3: New screen
bindkey -k k3 screen
# F4: Kill curent screen
bindkey -k k4 kill
# F5: Reload config.
register r "^a:source $HOME/.screenrc"
bindkey -k k5 process r
# F6: Set title of current screen.
bindkey -k k6 title
# Caption + Hardstatus configuration.
# =============================================================================
# Disable caption bar.
caption splitonly
# hard status bar.
# [] ({hostname}) :: {windowlist} :: {day} {time} []
hardstatus alwayslastline "%{wk}%{-}%{ww} %{wk} (%{gk}%H%{-}%{wk}) %{Wk}:: %{-}%{wk}%-w %{+b wk}[%n %t]%{-} %+w%=%{wk} :: %D %c:%s %{ww} %{-}"
# Caption bar.
# [] ({hostname}) :: {windowlist} :: {day} {time} []
# Using caption rather than hardstatus so I can adjust term title.
# caption always "%{wk}%{-}%{ww} %{wk} (%{gk}%H%{-}%{wk}) %{Wk}:: %{-}%{wk}%-w %{+b wk}[%n %t]%{-} %+w%=%{wk} :: %D %c:%s %{ww} %{-}"