-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
screenrc
75 lines (73 loc) · 1.7 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
# $Arch: screenrc,v 1.002 2017/08/07 18:59:41 kyau Exp $
# General {{{
# Automatically detach on SIGHUP
autodetach on
# Enable alternate screen support
altscreen on
# CR/LF = on, LF = off
crlf off
# Erase background with current background color
defbce on
# Login shell
deflogin on
# Default new window scrollback
defscrollback 4096
# Shell starts as a login-shell
defshell bash
# Display of extended ASCII, kana & kanji
defutf8 on
# Turn off flow-control
defflow off
# Display msgs for N seconds
msgwait 3
# Cryptic messages
nethack on
# Copyright notice during startup
startup_message off
# Set $TERM
term screen-256color
# Terminal capabilities
termcapinfo xterm*|rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007:Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# Visual bell
vbell off
# }}}
# Visual {{{
# Background screen stuff
backtick 1 0 0 "whoami"
backtick 2 300 300 true
#backtick 2 300 300 "check_updates.sh"
# Caption / hardstatus
caption always
caption string '%{= kw} %?%{K}%-w%{-}%?%{Bk} [%n] %{-}%?%{K}%+w%{-}%? %= %?%{y}%2`%{-} %{C}|%? %{W}%Y-%m-%d%{c}T%{-}%0c:%s %{-}'
hardstatus string "%1`@%H:%h%? [%1n]%?"
# }}}
# Keybindings {{{
bind s split -v
# Use F1-F8 to switch windows
bindkey -k k1 select 0
bindkey -k k2 select 1
bindkey -k k3 select 2
bindkey -k k4 select 3
bindkey -k k5 select 4
bindkey -k k6 select 5
bindkey -k k7 select 6
bindkey -k k8 select 7
# VIM-style bindings
bind j focus down
bind k focus up
bind h focus left
bind l focus right
bind J resize +5
bind K resize -5
bind ^b
bind ^b screen -t '' "${SHELL}"
# }}}
# Startup {{{
# Screensaver: cmatrix
idle 300 eval "screen -t matrix cmatrix" "idle 0"
# Launch default shell window
screen -t '' 0
# Fit screen to window size
fit
# }}}
# vim:ft=screen