-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenrc
78 lines (69 loc) · 2.19 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
# some general options
startup_message off
vbell off
altscreen on
autodetach on
defutf8 on
msgwait 1
maptimeout 0
# default screens
screen -t htop htop
screen -t amixer alsamixer
screen -t ct cleartool setview vw_engelju_main
screen -t ct cleartool setview vw_engelju_main
screen -t bash bash
# rebind some keys
bind ',' prev
bind '.' next
bind 'j' focus down
bind 'k' focus up
bind 'h' focus left
bind 'l' focus right
bind 'K' kill
bind 's' split
#quickly move between windows
bindkey ^[j prev # Alt+a previous window
bindkey ^[k next # Alt+f next window
#quick split
bindkey ^[s eval "split" "focus" "windowlist -m" # Alt+s split horizontally
bindkey ^[d eval "split -v" "focus" "windowlist -m" # Alt+d split vertically
#resize regions with vi keys
#bindkey ^[h resize -h -5 # Alt+h
#bindkey ^[j resize -v -5 # Alt+j
#bindkey ^[k resize -v +5 # Alt+k
#bindkey ^[l resize -h +5 # Alt+l
bindkey ^[h resize -5 # Alt+h
bindkey ^[l resize +5 # Alt+l
# press Alt+Space instead of escape key
bindkey "^[ " stuff ^[
#bind = resize =
#bind + resize +1
#bind - resize -1
#bind _ resize max
#bind c screen 1 #window numbering starts at 1 instead of 0
#bind 0 select 10
### terminfo and termcap for nice 256 color terminal
#
# allow bold colors -necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF = foreground
termcapinfo xterm 'Co#256:AB\E[48;5;%dm:AF=\E[38;5;%dm'
#termcap xterm 'AF=\E[3%dm:AB=\E[4%dm'
#terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
# erase background with current bg color
defbce "off"
#defbce "on"
# set TERM
#term xterm-256color
term screen-256color
#hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}'
#change the hardstatus settings to give an window list at the bottom of the
#screen, with the time and date and with the current window highlighted
#
# [ $hostname ] [ screens ] [ d-M 00:00]
#
#with white bg
#hardstatus string '%{= W}[ %{R}%H %{w}][%= %{= w}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{w}][%{R} %d-%m %{W}%c %{w}]'
hardstatus alwayslastline
#with black bg
hardstatus string '%{= kW}[ %{R}%H %{w}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{w}][%{R} %d-%M %{W}%c %{w}]'