-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenrc
110 lines (95 loc) · 4.86 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
###############################################################################
# This GNU Screen profile was generated by the screen-profile-export
# program, which is part of the screen-profiles package, and contains a
# subset of the functionality available from the full package.
#
# For more information, source code, questions, and bugs, see:
# * https://launchpad.net/screen-profiles
###############################################################################
# Now, let's override with our customizations
startup_message off
vbell off
msgwait 1
autodetach on
# Define status commands
backtick 99 86400 86400 $HOME/.screen-profiles/screen-profiles-status logo
backtick 100 3600 3600 $HOME/.screen-profiles/screen-profiles-status release
backtick 101 10 10 $HOME/.screen-profiles/screen-profiles-status updates-available
backtick 102 2 2 $HOME/.screen-profiles/screen-profiles-status reboot-required
backtick 103 2 2 $HOME/.screen-profiles/screen-profiles-status cpu-freq
backtick 104 86400 86400 $HOME/.screen-profiles/screen-profiles-status cpu-count
backtick 105 86400 86400 $HOME/.screen-profiles/screen-profiles-status mem-available
backtick 106 2 2 $HOME/.screen-profiles/screen-profiles-status load-average
backtick 107 2 2 $HOME/.screen-profiles/screen-profiles-status mem-used
backtick 108 600 600 $HOME/.screen-profiles/screen-profiles-status ec2-cost
backtick 109 3600 3600 $HOME/.screen-profiles/screen-profiles-status hostname
backtick 110 86400 86400 $HOME/.screen-profiles/screen-profiles-status whoami
backtick 111 86400 86400 $HOME/.screen-profiles/screen-profiles-status menu
backtick 112 86400 86400 $HOME/.screen-profiles/screen-profiles-status arch
backtick 113 30 30 $HOME/.screen-profiles/screen-profiles-status battery
backtick 114 10 10 $HOME/.screen-profiles/screen-profiles-status users
backtick 115 60 60 $HOME/.screen-profiles/screen-profiles-status uptime
backtick 116 2 2 $HOME/.screen-profiles/screen-profiles-status processes
backtick 117 2 2 $HOME/.screen-profiles/screen-profiles-status network-up
backtick 118 2 2 $HOME/.screen-profiles/screen-profiles-status network-down
backtick 119 2 2 $HOME/.screen-profiles/screen-profiles-status wifi-quality
hardstatus alwayslastline
# Turns off alternate screen switching in xterms,
# so that text in screen will go into the xterm's scrollback buffer:
termcapinfo xterm* ti@:te@
altscreen on
# Log 10000 lines
defscrollback 10000
###############################################################################
###############################################################################
# GNU Screen common keybindings
# This configuration profile is intended to be a common header of useful
# keybindings, included by other profiles.
###############################################################################
# This file defines the common key bindings
#
# bindkey commands should be followed by a comment that will be used in the
# help file (one day). The command should be formated as:
# # <key> | explanation
# F-keys seem to work well in both gnome-terminal and tty consoles
# 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 k6 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
# probando
#register m "^ax^a^d"
#bindkey -k F2 process m # F12 | Lock this terminal
###############################################################################
# Window tabs, second to last line
caption always "%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%? %= %{= kw}%110`%109`%111`"
# Status string, last line
hardstatus string '%99`%{= kw} %100`%112`%= %102`%101`%114`%115`%108`%113`%119`%117`%118`%116`%106`%104`%103`%105`%107`%Y-%m-%d %0c:%s'
# NOTE: Older version of screen have an arbitrary limit of only being able
# to change colors 16 times in this 'hardstatus string'.
# Ubuntu (fixed in Jaunty):
# * https://bugs.launchpad.net/bugs/315871
# Upstream:
# * http://savannah.gnu.org/bugs/?22146
# Allow local overrides in $HOME/.screenrc
###########################################################################
#
# PASSWORD PROTECT YOUR SESSION WHEN DETACH
# to generate your password use "mkpasswd yourpasswd"
# password ODSJQf.4IJN7E # example with passwd "1234"
#
# open multiple tabs by default
# #screen -t work 0
# #screen -t shell 1
# #screen -t others 2
# #select 0
#