|
Revision 4196, 1.5 kB
(checked in by xcezx, 5 years ago)
|
|
|
| Line | |
|---|
| 1 | # ~/.screenrc |
|---|
| 2 | |
|---|
| 3 | nethack on |
|---|
| 4 | escape ^t^t |
|---|
| 5 | bell_msg "Bell in window %n: %t" |
|---|
| 6 | vbell off |
|---|
| 7 | autodetach on |
|---|
| 8 | startup_message off |
|---|
| 9 | defscrollback 10240 |
|---|
| 10 | hardstatus on |
|---|
| 11 | hardstatus alwayslastline "%{=u Wr}[%Y-%m-%d %02c%{-u Wr}] %{Wk}%-w%{BW}%n %t%{-}%+w" |
|---|
| 12 | caption splitonly "%{.BW} >> %n %t" |
|---|
| 13 | msgwait 2 |
|---|
| 14 | |
|---|
| 15 | termcapinfo xterm 'Co@256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
|---|
| 16 | defbce on |
|---|
| 17 | term xterm-256color |
|---|
| 18 | |
|---|
| 19 | # Key bind |
|---|
| 20 | bind ^k |
|---|
| 21 | bind ^\ |
|---|
| 22 | bind ^G |
|---|
| 23 | bind \\ quit |
|---|
| 24 | bind k kill |
|---|
| 25 | bind / eval "scrollback 0" "scrollback 10240" |
|---|
| 26 | |
|---|
| 27 | # Split |
|---|
| 28 | bind -c REGION 2 split |
|---|
| 29 | bind -c REGION 1 only |
|---|
| 30 | bind -c REGION 0 remove |
|---|
| 31 | bind -c REGION o focus |
|---|
| 32 | bind -c RESIZE = eval 'resize =' 'command -c RESIZE' |
|---|
| 33 | bind -c RESIZE J eval 'resize +5' 'command -c RESIZE' |
|---|
| 34 | bind -c RESIZE K eval 'resize -5' 'command -c RESIZE' |
|---|
| 35 | bind -c RESIZE j eval 'resize +1' 'command -c RESIZE' |
|---|
| 36 | bind -c RESIZE k eval 'resize -1' 'command -c RESIZE' |
|---|
| 37 | bind -c REGION r eval 'echo "j: -1 / k: +1 / other: quit"' 'command -c RESIZE' |
|---|
| 38 | bind x eval 'echo "2: split / 1: only / 0: remove / o: focus r: resize"' 'command -c REGION' |
|---|
| 39 | |
|---|
| 40 | # App |
|---|
| 41 | bind -c APP a screen -t aptitude sudo aptitude |
|---|
| 42 | bind -c APP c screen -t cpan sudo cpan |
|---|
| 43 | bind -c APP t screen -t top top |
|---|
| 44 | bind a eval 'echo "a: aptitude / c: cpan / t: top"' 'command -c APP' |
|---|
| 45 | |
|---|
| 46 | markkeys h=^B:l=^F:$=^E:^D=V |
|---|
| 47 | |
|---|
| 48 | # Init. |
|---|
| 49 | screen -t ROOT 9 |
|---|
| 50 | screen -t THETA 8 |
|---|
| 51 | screen -t ETA 7 |
|---|
| 52 | screen -t ZETA 6 |
|---|
| 53 | screen -t EPSILON 5 |
|---|
| 54 | screen -t DELTA 4 |
|---|
| 55 | screen -t GAMMA 3 |
|---|
| 56 | screen -t BETA 2 |
|---|
| 57 | screen -t ALPHA 1 |
|---|
| 58 | screen -t ZERO 0 |
|---|
| 59 | |
|---|
| 60 | # __END__ |
|---|