-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenrc-simple
67 lines (54 loc) · 2.19 KB
/
screenrc-simple
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
# force a shell and profile reload
shell -$SHELL
# scrollback 10000 lines
termcapinfo xterm|xterms|xs|rxvt ti@:te@
defscrollback 10000
#### detach on hangup
autodetach on
#### don't display the copyright page
startup_message off
#### emulate .logout message
pow_detach_msg "Screen session of $LOGNAME $:cr:$:nl:ended."
## status bar v1
##### alternative caption, gives window list, LOGNAME and current date:
caption always "%u%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw %= %{mk}host:%H Load:%l %{ck}%M%{wk} %{ck}%d %{gk}%c"
## status bar v2
##hardstatus alwayslastline
#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %d/%m %C%a Load: %l"
#caption always "%3n %t%? @%u%?%? [%h]%?"a
# open multiple tabs by default
#screen -t work 0
#screen -t shell 1
#screen -t others 2
#select 0
# use mkpassword to generate new password
#password ODSJQf.4IJN7E #1234
# bindkeys debian ######
# F2 - F3 - F4 - F6 ######
#################################
# F1 | 'help' in gnome-terminal
register n "^a^c^aA" # | Goes with the F2 definition
bindkey -k k2 process n # F2 | Create new window (and name it)
bindkey -k k3 prev # F3 | Previous Window
bindkey -k k4 next # F4 | Next Window
#register r "^a:source $HOME/.screenrc" # | Goes with F5 definition
#bindkey -k k5 process r # F5 | Reload profile
bindkey -k k1 detach # F6 | Detach from this session
#bindkey -k k7 copy # F7 | Enter copy/scrollback mode
#bindkey -k k8 help # F8 | Advanced help/keybindings
#bindkey -k k9 screen -t help 0 screen-profiles # F9 | Configuration
# F10 | 'toolbar' in gnome-terminal
# F11 | 'fullscreen' in gnome-terminal
bindkey -k F2 lockscreen # F12 | Lock this terminal
# bindkeys redhat ##############
# F9 - F10 - F11 -F12 ##############
##########################################
#register n "^a^c^aA" # | Goes with the F2 definition
#bindkey -k k9 process n # F9 | Create new window (and name it)
#bindkey -k k; prev # F10 | Previous Window
#bindkey -k F1 next # F11 | Next Window
#bindkey -k F2 lockscreen # F12 | Lock this terminal
############################################
#
#change ^Aa default scape key to ^Tt to run screen inside screen
#escape ^Tt